Skip to content

Use OTel semconv package instead of consts #393

@sahidvelji

Description

@sahidvelji

The telemetry package should probably use the OTel semconv package for the consts below. The benefit of doing so is that updates to the semconv would generally require minimal changes to the telemetry package. Since the constants are already defined there, it does not make sense to redefine them in the telemetry package.

See the consts defined under the "feature_flag" namespace: https://pkg.go.dev/go.opentelemetry.io/[email protected]/semconv/v1.34.0#section-readme:~:text=Namespace%3A%20feature_flag

FlagKey string = "feature_flag.key"
ErrorTypeKey string = "error.type"
ResultValueKey string = "feature_flag.result.value"
ResultVariantKey string = "feature_flag.result.variant"
ErrorMessageKey string = "error.message"
ContextIDKey string = "feature_flag.context.id"
ProviderNameKey string = "feature_flag.provider.name"
ResultReasonKey string = "feature_flag.result.reason"
FlagSetIDKey string = "feature_flag.set.id"
VersionKey string = "feature_flag.version"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions