Skip to content

Commit

Permalink
Fix for OtlpGrpcExporterOptions in >=1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiddock committed Jun 3, 2024
1 parent 369ac87 commit 2fd54e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion instrumentation/nginx/src/otel_ngx_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,8 @@ static std::unique_ptr<sdktrace::SpanExporter> CreateExporter(const OtelNgxAgent
switch (conf->exporter.type) {
case OtelExporterOTLP: {
std::string endpoint = conf->exporter.endpoint;
otlp::OtlpGrpcExporterOptions opts{endpoint};
otlp::OtlpGrpcExporterOptions opts;
opts.endpoint = endpoint;
opts.use_ssl_credentials = conf->exporter.use_ssl_credentials;
opts.ssl_credentials_cacert_path = conf->exporter.ssl_credentials_cacert_path;
exporter.reset(new otlp::OtlpGrpcExporter(opts));
Expand Down

0 comments on commit 2fd54e4

Please sign in to comment.