diff --git a/instrumentation/nginx/src/otel_ngx_module.cpp b/instrumentation/nginx/src/otel_ngx_module.cpp index fa303dcae..c69a545a1 100644 --- a/instrumentation/nginx/src/otel_ngx_module.cpp +++ b/instrumentation/nginx/src/otel_ngx_module.cpp @@ -1021,7 +1021,8 @@ static std::unique_ptr 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));