Skip to content

Commit

Permalink
fix time
Browse files Browse the repository at this point in the history
  • Loading branch information
esigo committed Nov 19, 2023
1 parent 53c1fa3 commit 498caad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporters/prometheus/src/exporter_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ void PrometheusExporterUtils::SetMetricBasic(
const opentelemetry::sdk::instrumentationscope::InstrumentationScope *scope,
const opentelemetry::sdk::resource::Resource *resource)
{
metric.timestamp_ms = time.count() / 1000000;
if (labels.empty() && nullptr == resource)
{
return;
Expand Down

0 comments on commit 498caad

Please sign in to comment.