diff --git a/src/OpenTelemetry.Exporter.Instana/CHANGELOG.md b/src/OpenTelemetry.Exporter.Instana/CHANGELOG.md index edc969a77d..d1cf2c90c2 100644 --- a/src/OpenTelemetry.Exporter.Instana/CHANGELOG.md +++ b/src/OpenTelemetry.Exporter.Instana/CHANGELOG.md @@ -2,7 +2,12 @@ ## Unreleased +## 1.0.1 [2022-May-25] + +* Instana span duration was not calculated correctly +[376](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/376) + ## 1.0.0 [2022-May-24] -This is the first release of the `OpenTelemetry.Exporter.Instana` +* This is the first release of the `OpenTelemetry.Exporter.Instana` project. diff --git a/src/OpenTelemetry.Exporter.Instana/Implementation/InstanaSpanSerializer.cs b/src/OpenTelemetry.Exporter.Instana/Implementation/InstanaSpanSerializer.cs index 68bc0b8715..91fc38ca92 100644 --- a/src/OpenTelemetry.Exporter.Instana/Implementation/InstanaSpanSerializer.cs +++ b/src/OpenTelemetry.Exporter.Instana/Implementation/InstanaSpanSerializer.cs @@ -82,7 +82,7 @@ internal async Task SerializeToStreamWriterAsync(InstanaSpan instanaSpan, Stream await writer.WriteAsync(COMMA); await this.AppendPropertyAsync(DateToUnixMillis(instanaSpan.Ts), "ts", writer); await writer.WriteAsync(COMMA); - await this.AppendPropertyAsync(instanaSpan.D, "d", writer); + await this.AppendPropertyAsync((long)(instanaSpan.D / 10_000), "d", writer); await writer.WriteAsync(COMMA); await this.AppendObjectAsync(this.SerializeDataAsync, "data", instanaSpan, writer); await writer.WriteAsync(COMMA);