aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/wilson/wilson_uploader.h
blob: 86c23ccefeefb5880873f4b2d05831c491bceef9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <library/cpp/actors/core/actor.h>
#include <library/cpp/actors/core/event_local.h>
#include <library/cpp/actors/core/events.h>
#include <opentelemetry/proto/trace/v1/trace.pb.h>

namespace NWilson {

    struct TEvWilson : NActors::TEventLocal<TEvWilson, NActors::TEvents::TSystem::Wilson> {
        opentelemetry::proto::trace::v1::Span Span;

        TEvWilson(opentelemetry::proto::trace::v1::Span *span) {
            Span.Swap(span);
        }
    };

    inline NActors::TActorId MakeWilsonUploaderId() {
        return NActors::TActorId(0, TStringBuf("WilsonUpload", 12));
    }

    NActors::IActor *CreateWilsonUploader(TString host, ui16 port, TString rootCA, TString serviceName);

} // NWilson