Skip to content

Commit

Permalink
Merge pull request #19 from open-telemetry/main
Browse files Browse the repository at this point in the history
[EXPORTER] OTLP: Fix missing ResourceMetrics SchemaURL (open-telemetry#2587)
  • Loading branch information
malkia authored Mar 13, 2024
2 parents a0c14be + 19f0dc7 commit 29e9e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporters/otlp/src/otlp_metric_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ void OtlpMetricUtils::PopulateResourceMetrics(
proto::common::v1::InstrumentationScope *scope = scope_lib_metrics->mutable_scope();
scope->set_name(scope_metrics.scope_->GetName());
scope->set_version(scope_metrics.scope_->GetVersion());
resource_metrics->set_schema_url(scope_metrics.scope_->GetSchemaURL());

for (auto &metric_data : scope_metrics.metric_data_)
{
Expand Down

0 comments on commit 29e9e4d

Please sign in to comment.