Enum ObservabilitySemanticConvention
java.lang.Object
java.lang.Enum<ObservabilitySemanticConvention>
com.couchbase.client.core.cnc.tracing.ObservabilitySemanticConvention
- All Implemented Interfaces:
Serializable,Comparable<ObservabilitySemanticConvention>
@Uncommitted
public enum ObservabilitySemanticConvention
extends Enum<ObservabilitySemanticConvention>
Spans and metrics can be output in two formats:
The first, internally identified as "v0", follows the OpenTelemetry standard prior to its 1.23.0. The second, internally identified as "v1", follows the post-1.23.0 standard.
To provide backwards compatibility "v0" is the default if nothing is specified.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOutputs only the post-1.23.0 OpenTelemetry standard ("v1")Outputs both the pre and post-1.23.0 OpenTelemetry standard ("v0" and "v1"). -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ObservabilitySemanticConvention> Returns the enum constant of this type with the specified name.static ObservabilitySemanticConvention[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATABASE
Outputs only the post-1.23.0 OpenTelemetry standard ("v1") -
DATABASE_DUP
Outputs both the pre and post-1.23.0 OpenTelemetry standard ("v0" and "v1"). This is intended to support users transitioning between the two. Spans will have attributes reflecting both standards. Two versions of each metric will be output.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
loadAndParseOpenTelemetryEnvVar
-