-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instrumentation scope as Micrometer tags in meter state
- Loading branch information
Showing
14 changed files
with
134 additions
and
122 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...rovider/src/main/java/io/opentelemetry/contrib/metrics/micrometer/internal/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.contrib.metrics.micrometer.internal; | ||
|
||
import io.micrometer.core.instrument.Tag; | ||
|
||
/** | ||
* Constants for common Micrometer {@link Tag} names for the OpenTelemetry instrumentation scope. | ||
* | ||
* <p>This class is internal and is hence not for public use. Its APIs are unstable and can change | ||
* at any time. | ||
*/ | ||
public class Constants { | ||
public static final String OTEL_INSTRUMENTATION_NAME = "otel.instrumentation.name"; | ||
public static final String OTEL_INSTRUMENTATION_VERSION = "otel.instrumentation.version"; | ||
public static final Tag UNKNOWN_INSTRUMENTATION_VERSION_TAG = | ||
Tag.of(OTEL_INSTRUMENTATION_VERSION, "unknown"); | ||
|
||
private Constants() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
...main/java/io/opentelemetry/contrib/metrics/micrometer/internal/instruments/Constants.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.