X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fjaegertracing%2Fopentelemetry-cpp%2Fexporters%2Fjaeger%2Fthrift-gen%2FAgent_server.skeleton.cpp;fp=ceph%2Fsrc%2Fjaegertracing%2Fopentelemetry-cpp%2Fexporters%2Fjaeger%2Fthrift-gen%2FAgent_server.skeleton.cpp;h=60fdd94360f92781bcae5189f2f88d6aa648ef55;hb=1e59de90020f1d8d374046ef9cca56ccd4e806e2;hp=0000000000000000000000000000000000000000;hpb=bd41e436e25044e8e83156060a37c23cb661c364;p=ceph.git diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/thrift-gen/Agent_server.skeleton.cpp b/ceph/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/thrift-gen/Agent_server.skeleton.cpp new file mode 100644 index 000000000..60fdd9436 --- /dev/null +++ b/ceph/src/jaegertracing/opentelemetry-cpp/exporters/jaeger/thrift-gen/Agent_server.skeleton.cpp @@ -0,0 +1,47 @@ +// This autogenerated skeleton file illustrates how to build a server. +// You should copy it to another filename to avoid overwriting it. + +#include "Agent.h" +#include +#include +#include +#include + +using namespace ::apache::thrift; +using namespace ::apache::thrift::protocol; +using namespace ::apache::thrift::transport; +using namespace ::apache::thrift::server; + +using namespace ::jaegertracing::agent::thrift; + +class AgentHandler : virtual public AgentIf { + public: + AgentHandler() { + // Your initialization goes here + } + + void emitZipkinBatch(const std::vector< ::twitter::zipkin::thrift::Span> & spans) { + // Your implementation goes here + printf("emitZipkinBatch\n"); + } + + void emitBatch(const ::jaegertracing::thrift::Batch& batch) { + // Your implementation goes here + printf("emitBatch\n"); + } + +}; + +int main(int argc, char **argv) { + int port = 9090; + ::std::shared_ptr handler(new AgentHandler()); + ::std::shared_ptr processor(new AgentProcessor(handler)); + ::std::shared_ptr serverTransport(new TServerSocket(port)); + ::std::shared_ptr transportFactory(new TBufferedTransportFactory()); + ::std::shared_ptr protocolFactory(new TBinaryProtocolFactory()); + + TSimpleServer server(processor, serverTransport, transportFactory, protocolFactory); + server.serve(); + return 0; +} +