Skip to content

Commit

Permalink
Add cloud.provider semantic conventions (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcamp authored Sep 29, 2020
1 parent 450fd93 commit c8622d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions translator/conventions/opentelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ const (
AttributeSDKLangValueWebJS = "webjs"
)

// OpenTelemetry Semantic Convention values for Resource attribute "cloud.provider" values.
// See: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resource/semantic_conventions/cloud.md
const (
AttributeCloudProviderAWS = "aws"
AttributeCloudProviderAzure = "azure"
AttributeCloudProviderGCP = "gcp"
)

// GetResourceSemanticConventionAttributeNames a slice with all the Resource Semantic Conventions attribute names.
func GetResourceSemanticConventionAttributeNames() []string {
return []string{
Expand Down

0 comments on commit c8622d2

Please sign in to comment.