From 02c215ad57e1e4d56c54d22be58e1845bdeebf25 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 9 Oct 2021 16:10:00 +0200 Subject: refactor: Update OpenTelemetry to version 1.11 This change updates the OpenDC codebase to use OpenTelemetry v1.11, which stabilizes the metrics API. This stabilization brings quite a few breaking changes, so significant changes are necessary inside the OpenDC codebase. --- .../src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt | 3 --- 1 file changed, 3 deletions(-) (limited to 'opendc-experiments/opendc-experiments-tf20/src') diff --git a/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt b/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt index 1752802f..c751463d 100644 --- a/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt +++ b/opendc-experiments/opendc-experiments-tf20/src/main/kotlin/org/opendc/experiments/tf20/core/SimTFDevice.kt @@ -23,7 +23,6 @@ package org.opendc.experiments.tf20.core import io.opentelemetry.api.common.AttributeKey -import io.opentelemetry.api.common.Attributes import io.opentelemetry.api.metrics.Meter import kotlinx.coroutines.* import org.opendc.simulator.compute.SimBareMetalMachine @@ -82,7 +81,6 @@ public class SimTFDevice( .setDescription("The amount of device resources used") .setUnit("MHz") .build() - .bind(Attributes.of(deviceId, uid.toString())) /** * The power draw of the device. @@ -91,7 +89,6 @@ public class SimTFDevice( .setDescription("The power draw of the device") .setUnit("W") .build() - .bind(Attributes.of(deviceId, uid.toString())) /** * The workload that will be run by the device. -- cgit v1.2.3