Skip to content

Commit b3ad6a0

Browse files
committed
Add a static make method to all proxy classes, in response to change in libmexclass
1 parent e0a8028 commit b3ad6a0

39 files changed

+220
-183
lines changed

Diff for: CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ set(OPENTELEMETRY_PROXY_SOURCES
7979
${CONTEXT_API_SOURCE_DIR}/ContextProxy.cpp
8080
${BAGGAGE_API_SOURCE_DIR}/BaggageProxy.cpp
8181
${TRACE_SDK_SOURCE_DIR}/TracerProviderProxy.cpp
82+
${TRACE_SDK_SOURCE_DIR}/SimpleSpanProcessorProxy.cpp
8283
${TRACE_SDK_SOURCE_DIR}/BatchSpanProcessorProxy.cpp
8384
${TRACE_SDK_SOURCE_DIR}/ParentBasedSamplerProxy.cpp
8485
${OTLP_EXPORTER_SOURCE_DIR}/OtlpHttpSpanExporterProxy.cpp

Diff for: OtelMatlabProxyFactory.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
#include "opentelemetry-matlab/exporters/otlp/OtlpHttpSpanExporterProxy.h"
2626
#include "opentelemetry-matlab/exporters/otlp/OtlpGrpcSpanExporterProxy.h"
2727

28-
std::shared_ptr<libmexclass::proxy::Proxy>
28+
libmexclass::proxy::MakeResult
2929
OtelMatlabProxyFactory::make_proxy(const libmexclass::proxy::ClassName& class_name,
3030
const libmexclass::proxy::FunctionArguments& constructor_arguments) {
3131

3232
REGISTER_PROXY(libmexclass.opentelemetry.TracerProviderProxy, libmexclass::opentelemetry::TracerProviderProxy);
33-
REGISTER_PROXY(libmexclass.opentelemetry.TracerProxy, libmexclass::opentelemetry::TracerProxy);
33+
//REGISTER_PROXY(libmexclass.opentelemetry.TracerProxy, libmexclass::opentelemetry::TracerProxy);
3434
REGISTER_PROXY(libmexclass.opentelemetry.SpanProxy, libmexclass::opentelemetry::SpanProxy);
3535
//REGISTER_PROXY(libmexclass.opentelemetry.ScopeProxy, libmexclass::opentelemetry::ScopeProxy);
3636
REGISTER_PROXY(libmexclass.opentelemetry.SpanContextProxy, libmexclass::opentelemetry::SpanContextProxy);

Diff for: OtelMatlabProxyFactory.h

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// Copyright 2023 The MathWorks, Inc.
2-
3-
#pragma once
4-
5-
#include "libmexclass/proxy/Factory.h"
6-
7-
class OtelMatlabProxyFactory : public libmexclass::proxy::Factory {
8-
public:
9-
OtelMatlabProxyFactory() {}
10-
virtual std::shared_ptr<libmexclass::proxy::Proxy>
11-
make_proxy(const libmexclass::proxy::ClassName& class_name,
12-
const libmexclass::proxy::FunctionArguments& constructor_arguments);
13-
};
1+
// Copyright 2023 The MathWorks, Inc.
2+
3+
#pragma once
4+
5+
#include "libmexclass/proxy/Factory.h"
6+
7+
class OtelMatlabProxyFactory : public libmexclass::proxy::Factory {
8+
public:
9+
OtelMatlabProxyFactory() {}
10+
virtual libmexclass::proxy::MakeResult
11+
make_proxy(const libmexclass::proxy::ClassName& class_name,
12+
const libmexclass::proxy::FunctionArguments& constructor_arguments);
13+
};

Diff for: api/baggage/include/opentelemetry-matlab/baggage/BaggagePropagatorProxy.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ namespace context_propagation = opentelemetry::context::propagation;
1515
namespace libmexclass::opentelemetry {
1616
class BaggagePropagatorProxy : public TextMapPropagatorProxy {
1717
public:
18-
BaggagePropagatorProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments)
19-
{
20-
CppPropagator = nostd::shared_ptr<context_propagation::TextMapPropagator>(new baggage_propagation::BaggagePropagator());
18+
BaggagePropagatorProxy() : TextMapPropagatorProxy(nostd::shared_ptr<context_propagation::TextMapPropagator>(
19+
new baggage_propagation::BaggagePropagator())) {}
20+
21+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
22+
return std::make_shared<BaggagePropagatorProxy>();
2123
}
2224

2325
// getUniquePtrCopy is used by CompositePropagator, which needs a unique_ptr instance

Diff for: api/baggage/include/opentelemetry-matlab/baggage/BaggageProxy.h

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ namespace nostd = opentelemetry::nostd;
1212
namespace libmexclass::opentelemetry {
1313
class BaggageProxy : public libmexclass::proxy::Proxy {
1414
public:
15-
BaggageProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments);
15+
BaggageProxy(nostd::shared_ptr<baggage_api::Baggage> bag) : CppBaggage(bag) {
16+
REGISTER_METHOD(BaggageProxy, getAllEntries);
17+
REGISTER_METHOD(BaggageProxy, setEntries);
18+
REGISTER_METHOD(BaggageProxy, deleteEntries);
19+
REGISTER_METHOD(BaggageProxy, insertBaggage);
20+
}
21+
22+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments);
1623

1724
void getAllEntries(libmexclass::proxy::method::Context& context);
1825
void setEntries(libmexclass::proxy::method::Context& context);

Diff for: api/baggage/src/BaggageProxy.cpp

+5-9
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
namespace libmexclass::opentelemetry {
1414

15-
BaggageProxy::BaggageProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments)
16-
{
15+
libmexclass::proxy::MakeResult BaggageProxy::make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
1716
size_t nin = constructor_arguments.getNumberOfElements();
17+
nostd::shared_ptr<baggage_api::Baggage> baggage;
1818
if (nin == 1) {
1919
matlab::data::TypedArray<uint64_t> contextid_mda = constructor_arguments[0];
2020
libmexclass::proxy::ID contextid = contextid_mda[0];
2121

2222
context_api::Context ctxt = std::static_pointer_cast<ContextProxy>(
2323
libmexclass::proxy::ProxyManager::getProxy(contextid))->getInstance();
24-
CppBaggage = baggage_api::GetBaggage(ctxt);
24+
baggage = baggage_api::GetBaggage(ctxt);
2525
} else { // 2 inputs
2626
matlab::data::StringArray keys_mda = constructor_arguments[0];
2727
matlab::data::StringArray values_mda = constructor_arguments[1];
@@ -34,13 +34,9 @@ BaggageProxy::BaggageProxy(const libmexclass::proxy::FunctionArguments& construc
3434
static_cast<std::string>(values_mda[i])));
3535
}
3636

37-
CppBaggage = nostd::shared_ptr<baggage_api::Baggage>(new baggage_api::Baggage(attrs));
37+
baggage = nostd::shared_ptr<baggage_api::Baggage>(new baggage_api::Baggage(attrs));
3838
}
39-
40-
REGISTER_METHOD(BaggageProxy, getAllEntries);
41-
REGISTER_METHOD(BaggageProxy, setEntries);
42-
REGISTER_METHOD(BaggageProxy, deleteEntries);
43-
REGISTER_METHOD(BaggageProxy, insertBaggage);
39+
return std::make_shared<BaggageProxy>(baggage);
4440
}
4541

4642
void BaggageProxy::getAllEntries(libmexclass::proxy::method::Context& context) {

Diff for: api/context/include/opentelemetry-matlab/context/ContextProxy.h

+7-11
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@ namespace context_api = opentelemetry::context;
1616
namespace libmexclass::opentelemetry {
1717
class ContextProxy : public libmexclass::proxy::Proxy {
1818
public:
19-
// zero input supports the code path for empty context creation
20-
// one input supports the code path for getCurrentContext
21-
ContextProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments)
22-
: CppContext(constructor_arguments.isEmpty()? context_api::Context() : context_api::RuntimeContext::GetCurrent())
23-
{
24-
registerMethods();
19+
ContextProxy(context_api::Context ctxt) : CppContext{ctxt} {
20+
REGISTER_METHOD(ContextProxy, setCurrentContext);
2521
}
2622

27-
ContextProxy(context_api::Context ctxt) : CppContext{ctxt} {
28-
registerMethods();
23+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
24+
// zero input supports the code path for empty context creation
25+
// one input supports the code path for getCurrentContext
26+
return std::make_shared<ContextProxy>(constructor_arguments.isEmpty()?
27+
context_api::Context() : context_api::RuntimeContext::GetCurrent());
2928
}
3029

3130
context_api::Context getInstance() {
@@ -35,9 +34,6 @@ class ContextProxy : public libmexclass::proxy::Proxy {
3534
void setCurrentContext(libmexclass::proxy::method::Context& context);
3635

3736
private:
38-
void registerMethods() {
39-
REGISTER_METHOD(ContextProxy, setCurrentContext);
40-
}
4137

4238
context_api::Context CppContext;
4339
};

Diff for: api/context/include/opentelemetry-matlab/context/TokenProxy.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ namespace nostd = opentelemetry::nostd;
1515
namespace libmexclass::opentelemetry {
1616
class TokenProxy : public libmexclass::proxy::Proxy {
1717
public:
18-
TokenProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments) {}
18+
TokenProxy() {}
19+
20+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
21+
return std::make_shared<TokenProxy>();
22+
}
1923

2024
void setInstance(nostd::unique_ptr<context_api::Token>& instance) {
2125
CppToken.swap(instance);

Diff for: api/context/include/opentelemetry-matlab/context/propagation/CompositePropagatorProxy.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
namespace libmexclass::opentelemetry {
1111
class CompositePropagatorProxy : public TextMapPropagatorProxy {
1212
public:
13-
CompositePropagatorProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments);
13+
CompositePropagatorProxy(nostd::shared_ptr<context_propagation::TextMapPropagator> prop) : TextMapPropagatorProxy(prop) {}
14+
15+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments);
1416
};
1517
} // namespace libmexclass::opentelemetry

Diff for: api/context/include/opentelemetry-matlab/context/propagation/TextMapCarrierProxy.h

+3-7
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,19 @@
1010
namespace libmexclass::opentelemetry {
1111
class TextMapCarrierProxy : public libmexclass::proxy::Proxy {
1212
public:
13-
TextMapCarrierProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments);
14-
1513
TextMapCarrierProxy(const HttpTextMapCarrier& carrier) : CppCarrier(carrier) {
16-
registerMethods();
14+
REGISTER_METHOD(TextMapCarrierProxy, getHeaders);
1715
}
1816

17+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments);
18+
1919
HttpTextMapCarrier getInstance() {
2020
return CppCarrier;
2121
}
2222

2323
void getHeaders(libmexclass::proxy::method::Context& context);
2424

2525
private:
26-
void registerMethods() {
27-
REGISTER_METHOD(TextMapCarrierProxy, getHeaders);
28-
}
29-
3026
HttpTextMapCarrier CppCarrier;
3127
};
3228
} // namespace libmexclass::opentelemetry

Diff for: api/context/include/opentelemetry-matlab/context/propagation/TextMapPropagatorProxy.h

+7-15
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,16 @@ namespace nostd = opentelemetry::nostd;
1515
namespace libmexclass::opentelemetry {
1616
class TextMapPropagatorProxy : public libmexclass::proxy::Proxy {
1717
public:
18-
// this constructor should only be used by getTextMapPropagator
19-
TextMapPropagatorProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments)
20-
: CppPropagator(context_propagation::GlobalTextMapPropagator::GetGlobalPropagator())
18+
TextMapPropagatorProxy(nostd::shared_ptr<context_propagation::TextMapPropagator> prop)
19+
: CppPropagator(prop)
2120
{
22-
registerMethods();
21+
REGISTER_METHOD(TextMapPropagatorProxy, extract);
22+
REGISTER_METHOD(TextMapPropagatorProxy, inject);
23+
REGISTER_METHOD(TextMapPropagatorProxy, setTextMapPropagator);
2324
}
2425

25-
// default constructor should only be called by subclass constructors
26-
TextMapPropagatorProxy()
27-
{
28-
registerMethods();
26+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
27+
return std::make_shared<TextMapPropagatorProxy>(context_propagation::GlobalTextMapPropagator::GetGlobalPropagator());
2928
}
3029

3130
// getUniquePtrCopy is used by CompositePropagator, which needs a unique_ptr instance
@@ -43,13 +42,6 @@ class TextMapPropagatorProxy : public libmexclass::proxy::Proxy {
4342
context_propagation::GlobalTextMapPropagator::SetGlobalPropagator(CppPropagator);
4443
}
4544

46-
private:
47-
void registerMethods() {
48-
REGISTER_METHOD(TextMapPropagatorProxy, extract);
49-
REGISTER_METHOD(TextMapPropagatorProxy, inject);
50-
REGISTER_METHOD(TextMapPropagatorProxy, setTextMapPropagator);
51-
}
52-
5345
protected:
5446
nostd::shared_ptr<context_propagation::TextMapPropagator> CppPropagator;
5547
};

Diff for: api/context/src/CompositePropagatorProxy.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
namespace context_propagation = opentelemetry::context::propagation;
1010

1111
namespace libmexclass::opentelemetry {
12-
CompositePropagatorProxy::CompositePropagatorProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments)
13-
{
12+
13+
libmexclass::proxy::MakeResult CompositePropagatorProxy::make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
1414
matlab::data::TypedArray<uint64_t> propagatorid_mda = constructor_arguments[0];
1515
size_t npropagators = propagatorid_mda.getNumberOfElements();
1616
std::vector<std::unique_ptr<context_propagation::TextMapPropagator> > propagators;
@@ -21,6 +21,8 @@ CompositePropagatorProxy::CompositePropagatorProxy(const libmexclass::proxy::Fun
2121
libmexclass::proxy::ProxyManager::getProxy(propagatorid))->getUniquePtrCopy());
2222
}
2323

24-
CppPropagator = nostd::shared_ptr<context_propagation::TextMapPropagator>(new context_propagation::CompositePropagator(std::move(propagators)));
24+
return std::make_shared<CompositePropagatorProxy>(nostd::shared_ptr<context_propagation::TextMapPropagator>(
25+
new context_propagation::CompositePropagator(std::move(propagators))));
2526
}
27+
2628
} // namespace libmexclass::opentelemetry

Diff for: api/context/src/ContextProxy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ void ContextProxy::setCurrentContext(libmexclass::proxy::method::Context& contex
77
auto token = context_api::RuntimeContext::Attach(CppContext);
88

99
// instantiate TokenProxy instance
10-
TokenProxy* newproxy = new TokenProxy(libmexclass::proxy::FunctionArguments());
10+
TokenProxy* newproxy = new TokenProxy();
1111
newproxy->setInstance(token);
1212
auto tokenproxy = std::shared_ptr<libmexclass::proxy::Proxy>(newproxy);
1313

Diff for: api/context/src/TextMapCarrierProxy.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
#include "opentelemetry-matlab/context/propagation/TextMapCarrierProxy.h"
44

55
namespace libmexclass::opentelemetry {
6-
TextMapCarrierProxy::TextMapCarrierProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
6+
libmexclass::proxy::MakeResult TextMapCarrierProxy::make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
77
matlab::data::StringArray headers_mda = constructor_arguments[0];
88
matlab::data::ArrayDimensions headers_size = headers_mda.getDimensions();
99
size_t nheaders = headers_size[0];
1010
assert(headers_size[1] == 2); // input should be Nx2
1111

12+
HttpTextMapCarrier carrier;
1213
for (size_t i=0; i<nheaders; ++i) {
13-
CppCarrier.Set(std::string(headers_mda[i][0]), std::string(headers_mda[i][1]));
14+
carrier.Set(std::string(headers_mda[i][0]), std::string(headers_mda[i][1]));
1415
}
1516

16-
registerMethods();
17+
return std::make_shared<TextMapCarrierProxy>(carrier);
1718
}
1819

1920
void TextMapCarrierProxy::getHeaders(libmexclass::proxy::method::Context& context) {

Diff for: api/trace/+opentelemetry/+trace/SpanContext.m

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@
1414
Proxy % Proxy object to interface C++ code
1515
end
1616

17-
methods (Access=?opentelemetry.trace.Span)
17+
methods (Access={?opentelemetry.trace.Span,?opentelemetry.trace.Link})
1818
function obj = SpanContext(proxy)
19-
obj.Proxy = proxy;
19+
if nargin < 1
20+
obj.Proxy = libmexclass.proxy.Proxy("Name", ...
21+
"libmexclass.opentelemetry.SpanContextProxy", ...
22+
"ConstructorArguments", {});
23+
else
24+
obj.Proxy = proxy;
25+
end
2026
end
2127
end
2228

Diff for: api/trace/include/opentelemetry-matlab/trace/SpanContextProxy.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class SpanContextProxy : public libmexclass::proxy::Proxy {
2424
REGISTER_METHOD(SpanContextProxy, isRemote);
2525
}
2626

27-
// dummy constructor that wraps around an invalid context, to satisfy proxy registration
28-
SpanContextProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments) :
29-
CppSpanContext{false,false} {
27+
// dummy make static method, to satisfy proxy registration
28+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
29+
return std::make_shared<SpanContextProxy>(trace_api::SpanContext{false, false});
3030
}
3131

3232
trace_api::SpanContext getInstance() {

Diff for: api/trace/include/opentelemetry-matlab/trace/SpanProxy.h

+12-4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,20 @@ namespace nostd = opentelemetry::nostd;
1313
namespace libmexclass::opentelemetry {
1414
class SpanProxy : public libmexclass::proxy::Proxy {
1515
public:
16-
SpanProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments);
17-
18-
void setInstance(nostd::shared_ptr<trace_api::Span> instance) {
19-
CppSpan = instance;
16+
SpanProxy(nostd::shared_ptr<trace_api::Span> span) : CppSpan(span) {
17+
REGISTER_METHOD(SpanProxy, endSpan);
18+
REGISTER_METHOD(SpanProxy, makeCurrent);
19+
REGISTER_METHOD(SpanProxy, setAttribute);
20+
REGISTER_METHOD(SpanProxy, addEvent);
21+
REGISTER_METHOD(SpanProxy, updateName);
22+
REGISTER_METHOD(SpanProxy, setStatus);
23+
REGISTER_METHOD(SpanProxy, getSpanContext);
24+
REGISTER_METHOD(SpanProxy, isRecording);
25+
REGISTER_METHOD(SpanProxy, insertSpan);
2026
}
2127

28+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments);
29+
2230
void endSpan(libmexclass::proxy::method::Context& context);
2331

2432
void makeCurrent(libmexclass::proxy::method::Context& context);

Diff for: api/trace/include/opentelemetry-matlab/trace/TraceContextPropagatorProxy.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ namespace context_propagation = opentelemetry::context::propagation;
1515
namespace libmexclass::opentelemetry {
1616
class TraceContextPropagatorProxy : public TextMapPropagatorProxy {
1717
public:
18-
TraceContextPropagatorProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments)
19-
{
20-
CppPropagator = nostd::shared_ptr<context_propagation::TextMapPropagator>(new trace_propagation::HttpTraceContext());
18+
TraceContextPropagatorProxy() : TextMapPropagatorProxy(nostd::shared_ptr<context_propagation::TextMapPropagator>(
19+
new trace_propagation::HttpTraceContext())) {}
20+
21+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
22+
return std::make_shared<TraceContextPropagatorProxy>();
2123
}
2224

2325
// getUniquePtrCopy is used by CompositePropagator, which needs a unique_ptr instance

Diff for: api/trace/include/opentelemetry-matlab/trace/TracerProviderProxy.h

+7-15
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,21 @@ namespace resource = opentelemetry::sdk::resource;
2525
namespace libmexclass::opentelemetry {
2626
class TracerProviderProxy : public libmexclass::proxy::Proxy {
2727
public:
28-
// this constructor should only be used by getTracerProvider
29-
TracerProviderProxy(const libmexclass::proxy::FunctionArguments& constructor_arguments)
30-
{
31-
// get the global instance instead of creating a new instance
32-
CppTracerProvider = trace_api::Provider::GetTracerProvider();
33-
registerMethods();
28+
TracerProviderProxy(nostd::shared_ptr<trace_api::TracerProvider> tp) : CppTracerProvider(tp) {
29+
REGISTER_METHOD(TracerProviderProxy, getTracer);
30+
REGISTER_METHOD(TracerProviderProxy, setTracerProvider);
3431
}
3532

36-
// default constructor should only be called by SDK TracerProvider constructor
37-
TracerProviderProxy() {
38-
registerMethods();
33+
// Static make method should only be used by getTracerProvider. It gets the global instance
34+
// instead of creating a new instance
35+
static libmexclass::proxy::MakeResult make(const libmexclass::proxy::FunctionArguments& constructor_arguments) {
36+
return std::make_shared<TracerProviderProxy>(trace_api::Provider::GetTracerProvider());
3937
}
4038

4139
void getTracer(libmexclass::proxy::method::Context& context);
4240

4341
void setTracerProvider(libmexclass::proxy::method::Context& context);
4442

45-
private:
46-
void registerMethods() {
47-
REGISTER_METHOD(TracerProviderProxy, getTracer);
48-
REGISTER_METHOD(TracerProviderProxy, setTracerProvider);
49-
}
50-
5143
protected:
5244
nostd::shared_ptr<trace_api::TracerProvider> CppTracerProvider;
5345
};

0 commit comments

Comments
 (0)