diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md index e7fcc8ecac1a0..921d9f4d80712 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md @@ -1,16 +1,11 @@ # Release History -## 1.0.0-beta.13 (Unreleased) - -### Features Added - -### Breaking Changes +## 1.0.0-beta.13 (2023-10-24) ### Bugs Fixed +- [Fix null ikey for _otelresource_ custom metrics](https://github.com/Azure/azure-sdk-for-java/pull/37352) -### Other Changes - -## 1.0.0-beta.12 (2023-10-17) +## 1.0.0-beta.12 (2023-10-23) ### Features Added - [Enable Statsbeat](https://github.com/Azure/azure-sdk-for-java/pull/37032) diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/pipeline/TelemetryItemExporter.java b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/pipeline/TelemetryItemExporter.java index 8705ca7ffe9c2..f422cdbf3be59 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/pipeline/TelemetryItemExporter.java +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/pipeline/TelemetryItemExporter.java @@ -154,8 +154,8 @@ CompletableResultCode internalSendByBatch(TelemetryItemBatchKey telemetryItemBat } private TelemetryItem createOtelResourceMetric(TelemetryItemBatchKey telemetryItemBatchKey) { - MetricTelemetryBuilder builder = MetricTelemetryBuilder.create(_OTELRESOURCE_, 0); + builder.setConnectionString(telemetryItemBatchKey.connectionString); telemetryItemBatchKey.resource.getAttributes().forEach((k, v) -> builder.addProperty(k.getKey(), v.toString())); String roleName = telemetryItemBatchKey.resourceFromTags.get(ContextTagKeys.AI_CLOUD_ROLE.toString()); if (roleName != null) {