Skip to content

Commit

Permalink
Fix missing ResourceMetrics URL
Browse files Browse the repository at this point in the history
Signed-off-by: perhapsmaple <140232061+perhapsmaple@users.noreply.github.com>
  • Loading branch information
perhapsmaple committed Mar 12, 2024
1 parent 25738f3 commit c670276
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 c670276

Please sign in to comment.