wilson_uploader.h 729 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <library/cpp/actors/core/actor.h>
  3. #include <library/cpp/actors/core/event_local.h>
  4. #include <library/cpp/actors/core/events.h>
  5. #include <opentelemetry/proto/trace/v1/trace.pb.h>
  6. namespace NWilson {
  7. struct TEvWilson : NActors::TEventLocal<TEvWilson, NActors::TEvents::TSystem::Wilson> {
  8. opentelemetry::proto::trace::v1::Span Span;
  9. TEvWilson(opentelemetry::proto::trace::v1::Span *span) {
  10. Span.Swap(span);
  11. }
  12. };
  13. inline NActors::TActorId MakeWilsonUploaderId() {
  14. return NActors::TActorId(0, TStringBuf("WilsonUpload", 12));
  15. }
  16. NActors::IActor *CreateWilsonUploader(TString host, ui16 port, TString rootCA, TString serviceName);
  17. } // NWilson