From 5cdc8a1f0d5550f0fa09cc507295e0a3cdb8e413 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 28 Apr 2022 13:51:28 -0700 Subject: [PATCH] Remove deprecated model module, everything is available in pdata and semconv Signed-off-by: Bogdan Drutu --- Makefile | 1 - model/Makefile | 1 - model/go.mod | 18 - model/go.sum | 150 -- model/otlp/json_marshaler.go | 33 - model/otlp/json_unmarshaler.go | 33 - model/otlp/pb_marshaler.go | 33 - model/otlp/pb_unmarshaler.go | 33 - model/otlpgrpc/logs.go | 53 - model/otlpgrpc/metrics.go | 53 - model/otlpgrpc/traces.go | 53 - model/pdata/common_alias.go | 95 - model/pdata/doc.go | 41 - model/pdata/generated_common_alias.go | 36 - model/pdata/generated_plog_alias.go | 68 - model/pdata/generated_pmetric_alias.go | 212 -- model/pdata/generated_ptrace_alias.go | 108 -- model/pdata/generated_resource_alias.go | 28 - model/pdata/logs_alias.go | 121 -- model/pdata/metrics_alias.go | 118 -- model/pdata/spanid_alias.go | 29 - model/pdata/timestamp_alias.go | 25 - model/pdata/traceid_alias.go | 29 - model/pdata/traces_alias.go | 88 - model/semconv/v1.5.0/generated_resource.go | 1125 ----------- model/semconv/v1.5.0/generated_trace.go | 1707 ----------------- model/semconv/v1.5.0/nonstandard.go | 29 - model/semconv/v1.5.0/schema.go | 21 - model/semconv/v1.6.1/generated_resource.go | 1135 ----------- model/semconv/v1.6.1/generated_trace.go | 1851 ------------------ model/semconv/v1.6.1/nonstandard.go | 26 - model/semconv/v1.6.1/schema.go | 21 - model/semconv/v1.7.0/generated_resource.go | 1135 ----------- model/semconv/v1.7.0/generated_trace.go | 1923 ------------------- model/semconv/v1.7.0/nonstandard.go | 26 - model/semconv/v1.7.0/schema.go | 21 - model/semconv/v1.8.0/generated_resource.go | 1168 ----------- model/semconv/v1.8.0/generated_trace.go | 1999 ------------------- model/semconv/v1.8.0/nonstandard.go | 26 - model/semconv/v1.8.0/schema.go | 21 - model/semconv/v1.9.0/generated_resource.go | 1179 ------------ model/semconv/v1.9.0/generated_trace.go | 2021 -------------------- model/semconv/v1.9.0/nonstandard.go | 26 - model/semconv/v1.9.0/schema.go | 21 - versions.yaml | 1 - 45 files changed, 16941 deletions(-) delete mode 100644 model/Makefile delete mode 100644 model/go.mod delete mode 100644 model/go.sum delete mode 100644 model/otlp/json_marshaler.go delete mode 100644 model/otlp/json_unmarshaler.go delete mode 100644 model/otlp/pb_marshaler.go delete mode 100644 model/otlp/pb_unmarshaler.go delete mode 100644 model/otlpgrpc/logs.go delete mode 100644 model/otlpgrpc/metrics.go delete mode 100644 model/otlpgrpc/traces.go delete mode 100644 model/pdata/common_alias.go delete mode 100644 model/pdata/doc.go delete mode 100644 model/pdata/generated_common_alias.go delete mode 100644 model/pdata/generated_plog_alias.go delete mode 100644 model/pdata/generated_pmetric_alias.go delete mode 100644 model/pdata/generated_ptrace_alias.go delete mode 100644 model/pdata/generated_resource_alias.go delete mode 100644 model/pdata/logs_alias.go delete mode 100644 model/pdata/metrics_alias.go delete mode 100644 model/pdata/spanid_alias.go delete mode 100644 model/pdata/timestamp_alias.go delete mode 100644 model/pdata/traceid_alias.go delete mode 100644 model/pdata/traces_alias.go delete mode 100644 model/semconv/v1.5.0/generated_resource.go delete mode 100644 model/semconv/v1.5.0/generated_trace.go delete mode 100644 model/semconv/v1.5.0/nonstandard.go delete mode 100644 model/semconv/v1.5.0/schema.go delete mode 100644 model/semconv/v1.6.1/generated_resource.go delete mode 100644 model/semconv/v1.6.1/generated_trace.go delete mode 100644 model/semconv/v1.6.1/nonstandard.go delete mode 100644 model/semconv/v1.6.1/schema.go delete mode 100644 model/semconv/v1.7.0/generated_resource.go delete mode 100644 model/semconv/v1.7.0/generated_trace.go delete mode 100644 model/semconv/v1.7.0/nonstandard.go delete mode 100644 model/semconv/v1.7.0/schema.go delete mode 100644 model/semconv/v1.8.0/generated_resource.go delete mode 100644 model/semconv/v1.8.0/generated_trace.go delete mode 100644 model/semconv/v1.8.0/nonstandard.go delete mode 100644 model/semconv/v1.8.0/schema.go delete mode 100644 model/semconv/v1.9.0/generated_resource.go delete mode 100644 model/semconv/v1.9.0/generated_trace.go delete mode 100644 model/semconv/v1.9.0/nonstandard.go delete mode 100644 model/semconv/v1.9.0/schema.go diff --git a/Makefile b/Makefile index 5b19214fbac..2117e0017b0 100644 --- a/Makefile +++ b/Makefile @@ -308,7 +308,6 @@ check-contrib: @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector=$(CURDIR)" @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector/pdata=$(CURDIR)/pdata" @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector/semconv=$(CURDIR)/semconv" - @$(MAKE) -C $(CONTRIB_PATH) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector/model=$(CURDIR)/model" @$(MAKE) -C $(CONTRIB_PATH) -j2 gotidy @$(MAKE) -C $(CONTRIB_PATH) test @echo Restoring contrib to no longer use this core checkout diff --git a/model/Makefile b/model/Makefile deleted file mode 100644 index 39734bfaebb..00000000000 --- a/model/Makefile +++ /dev/null @@ -1 +0,0 @@ -include ../Makefile.Common diff --git a/model/go.mod b/model/go.mod deleted file mode 100644 index 95d8c44ba71..00000000000 --- a/model/go.mod +++ /dev/null @@ -1,18 +0,0 @@ -module go.opentelemetry.io/collector/model - -go 1.17 - -require go.opentelemetry.io/collector/pdata v0.50.0 - -require ( - github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang/protobuf v1.5.2 // indirect - golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect - golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 // indirect - golang.org/x/text v0.3.3 // indirect - google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect - google.golang.org/grpc v1.46.0 // indirect - google.golang.org/protobuf v1.28.0 // indirect -) - -replace go.opentelemetry.io/collector/pdata => ../pdata diff --git a/model/go.sum b/model/go.sum deleted file mode 100644 index 8b2b32a568a..00000000000 --- a/model/go.sum +++ /dev/null @@ -1,150 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= -github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 h1:myAQVi0cGEoqQVR5POX+8RR2mrocKqNN1hmeMqhX27k= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 h1:+kGHl1aib/qcwaRi1CbqBZ1rk19r85MNUf8HaBghugY= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.46.0 h1:oCjezcn6g6A75TGoKYBPgKmVBLexhYLM6MebdrPApP8= -google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= -google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/model/otlp/json_marshaler.go b/model/otlp/json_marshaler.go deleted file mode 100644 index 50bcbc93801..00000000000 --- a/model/otlp/json_marshaler.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package otlp // import "go.opentelemetry.io/collector/model/otlp" - -import ( - "go.opentelemetry.io/collector/pdata/plog" - "go.opentelemetry.io/collector/pdata/pmetric" - "go.opentelemetry.io/collector/pdata/ptrace" -) - -// NewJSONTracesMarshaler returns a model.TracesMarshaler. Marshals to OTLP json bytes. -// Deprecated: [v0.49.0] Use ptrace.NewJSONMarshaler instead. -var NewJSONTracesMarshaler = ptrace.NewJSONMarshaler - -// NewJSONMetricsMarshaler returns a model.MetricsMarshaler. Marshals to OTLP json bytes. -// Deprecated: [v0.49.0] Use pmetric.NewJSONMarshaler instead. -var NewJSONMetricsMarshaler = pmetric.NewJSONMarshaler - -// NewJSONLogsMarshaler returns a model.LogsMarshaler. Marshals to OTLP json bytes. -// Deprecated: [v0.49.0] Use plog.NewJSONMarshaler instead. -var NewJSONLogsMarshaler = plog.NewJSONMarshaler diff --git a/model/otlp/json_unmarshaler.go b/model/otlp/json_unmarshaler.go deleted file mode 100644 index d1e3981d07e..00000000000 --- a/model/otlp/json_unmarshaler.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package otlp // import "go.opentelemetry.io/collector/model/otlp" - -import ( - "go.opentelemetry.io/collector/pdata/plog" - "go.opentelemetry.io/collector/pdata/pmetric" - "go.opentelemetry.io/collector/pdata/ptrace" -) - -// NewJSONTracesUnmarshaler returns a model.TracesUnmarshaler. Unmarshals from OTLP json bytes. -// Deprecated: [v0.49.0] Use ptrace.NewJSONUnmarshaler instead. -var NewJSONTracesUnmarshaler = ptrace.NewJSONUnmarshaler - -// NewJSONMetricsUnmarshaler returns a model.MetricsUnmarshaler. Unmarshals from OTLP json bytes. -// Deprecated: [v0.49.0] Use pmetric.NewJSONUnmarshaler instead. -var NewJSONMetricsUnmarshaler = pmetric.NewJSONUnmarshaler - -// NewJSONLogsUnmarshaler returns a model.LogsUnmarshaler. Unmarshals from OTLP json bytes. -// Deprecated: [v0.49.0] Use plog.NewJSONUnmarshaler instead. -var NewJSONLogsUnmarshaler = plog.NewJSONUnmarshaler diff --git a/model/otlp/pb_marshaler.go b/model/otlp/pb_marshaler.go deleted file mode 100644 index 1d0b1702ebe..00000000000 --- a/model/otlp/pb_marshaler.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package otlp // import "go.opentelemetry.io/collector/model/otlp" - -import ( - "go.opentelemetry.io/collector/pdata/plog" - "go.opentelemetry.io/collector/pdata/pmetric" - "go.opentelemetry.io/collector/pdata/ptrace" -) - -// NewProtobufTracesMarshaler returns a pdata.TracesMarshaler. Marshals to OTLP binary protobuf bytes. -// Deprecated: [v0.49.0] Use ptrace.NewProtoMarshaler instead. -var NewProtobufTracesMarshaler = ptrace.NewProtoMarshaler - -// NewProtobufMetricsMarshaler returns a pdata.MetricsMarshaler. Marshals to OTLP binary protobuf bytes. -// Deprecated: [v0.49.0] Use pmetric.NewProtoMarshaler instead. -var NewProtobufMetricsMarshaler = pmetric.NewProtoMarshaler - -// NewProtobufLogsMarshaler returns a pdata.LogsMarshaler. Marshals to OTLP binary protobuf bytes. -// Deprecated: [v0.49.0] Use plog.NewProtoMarshaler instead. -var NewProtobufLogsMarshaler = plog.NewProtoMarshaler diff --git a/model/otlp/pb_unmarshaler.go b/model/otlp/pb_unmarshaler.go deleted file mode 100644 index d8fc4b7a4eb..00000000000 --- a/model/otlp/pb_unmarshaler.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package otlp // import "go.opentelemetry.io/collector/model/otlp" - -import ( - "go.opentelemetry.io/collector/pdata/plog" - "go.opentelemetry.io/collector/pdata/pmetric" - "go.opentelemetry.io/collector/pdata/ptrace" -) - -// NewProtobufTracesUnmarshaler returns a model.TracesUnmarshaler. Unmarshals from OTLP binary protobuf bytes. -// Deprecated: [v0.49.0] Use ptrace.NewProtoUnmarshaler instead. -var NewProtobufTracesUnmarshaler = ptrace.NewProtoUnmarshaler - -// NewProtobufMetricsUnmarshaler returns a model.MetricsUnmarshaler. Unmarshals from OTLP binary protobuf bytes. -// Deprecated: [v0.49.0] Use pmetric.NewProtoUnmarshaler instead. -var NewProtobufMetricsUnmarshaler = pmetric.NewProtoUnmarshaler - -// NewProtobufLogsUnmarshaler returns a model.LogsUnmarshaler. Unmarshals from OTLP binary protobuf bytes. -// Deprecated: [v0.49.0] Use plog.NewProtoUnmarshaler instead. -var NewProtobufLogsUnmarshaler = plog.NewProtoUnmarshaler diff --git a/model/otlpgrpc/logs.go b/model/otlpgrpc/logs.go deleted file mode 100644 index 2e26c1e2ba6..00000000000 --- a/model/otlpgrpc/logs.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package otlpgrpc // import "go.opentelemetry.io/collector/model/otlpgrpc" - -import ( - "go.opentelemetry.io/collector/pdata/plog/plogotlp" -) - -// LogsResponse represents the response for gRPC client/server. -// Deprecated: [v0.49.0] Use plogotlp.Response instead. -type LogsResponse = plogotlp.Response - -// NewLogsResponse returns an empty LogsResponse. -// Deprecated: [v0.49.0] Use plogotlp.NewResponse instead. -var NewLogsResponse = plogotlp.NewResponse - -// LogsRequest represents the response for gRPC client/server. -// Deprecated: [v0.49.0] Use plogotlp.Request instead. -type LogsRequest = plogotlp.Request - -// NewLogsRequest returns an empty LogsRequest. -// Deprecated: [v0.49.0] Use plogotlp.NewRequest instead. -var NewLogsRequest = plogotlp.NewRequest - -// LogsClient is the client API for OTLP-GRPC Logs service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -// Deprecated: [v0.49.0] Use plogotlp.Client instead. -type LogsClient = plogotlp.Client - -// NewLogsClient returns a new LogsClient connected using the given connection. -// Deprecated: [v0.49.0] Use plogotlp.NewClient instead. -var NewLogsClient = plogotlp.NewClient - -// LogsServer is the server API for OTLP gRPC LogsService service. -// Deprecated: [v0.49.0] Use plogotlp.Server instead. -type LogsServer = plogotlp.Server - -// RegisterLogsServer registers the LogsServer to the grpc.Server. -// Deprecated: [v0.49.0] Use plogotlp.RegisterServer instead. -var RegisterLogsServer = plogotlp.RegisterServer diff --git a/model/otlpgrpc/metrics.go b/model/otlpgrpc/metrics.go deleted file mode 100644 index 51ab5a55b1e..00000000000 --- a/model/otlpgrpc/metrics.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package otlpgrpc // import "go.opentelemetry.io/collector/model/otlpgrpc" - -import ( - "go.opentelemetry.io/collector/pdata/pmetric/pmetricotlp" -) - -// MetricsResponse represents the response for gRPC client/server. -// Deprecated: [v0.49.0] Use pmetricotlp.Response instead. -type MetricsResponse = pmetricotlp.Response - -// NewMetricsResponse returns an empty MetricsResponse. -// Deprecated: [v0.49.0] Use pmetricotlp.NewResponse instead. -var NewMetricsResponse = pmetricotlp.NewResponse - -// MetricsRequest represents the response for gRPC client/server. -// Deprecated: [v0.49.0] Use pmetricotlp.Request instead. -type MetricsRequest = pmetricotlp.Request - -// NewMetricsRequest returns an empty MetricsRequest. -// Deprecated: [v0.49.0] Use pmetricotlp.NewRequest instead. -var NewMetricsRequest = pmetricotlp.NewRequest - -// MetricsClient is the client API for OTLP-GRPC Metrics service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -// Deprecated: [v0.49.0] Use pmetricotlp.Client instead. -type MetricsClient = pmetricotlp.Client - -// NewMetricsClient returns a new MetricsClient connected using the given connection. -// Deprecated: [v0.49.0] Use pmetricotlp.NewClient instead. -var NewMetricsClient = pmetricotlp.NewClient - -// MetricsServer is the server API for OTLP gRPC MetricsService service. -// Deprecated: [v0.49.0] Use pmetricotlp.Server instead. -type MetricsServer = pmetricotlp.Server - -// RegisterMetricsServer registers the MetricsServer to the grpc.Server. -// Deprecated: [v0.49.0] Use pmetricotlp.RegisterServer instead. -var RegisterMetricsServer = pmetricotlp.RegisterServer diff --git a/model/otlpgrpc/traces.go b/model/otlpgrpc/traces.go deleted file mode 100644 index 94a1200f98a..00000000000 --- a/model/otlpgrpc/traces.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package otlpgrpc // import "go.opentelemetry.io/collector/model/otlpgrpc" - -import ( - "go.opentelemetry.io/collector/pdata/ptrace/ptraceotlp" -) - -// TracesResponse represents the response for gRPC client/server. -// Deprecated: [v0.49.0] Use ptraceotlp.Response instead. -type TracesResponse = ptraceotlp.Response - -// NewTracesResponse returns an empty TracesResponse. -// Deprecated: [v0.49.0] Use ptraceotlp.NewResponse instead. -var NewTracesResponse = ptraceotlp.NewResponse - -// TracesRequest represents the response for gRPC client/server. -// Deprecated: [v0.49.0] Use ptraceotlp.Request instead. -type TracesRequest = ptraceotlp.Request - -// NewTracesRequest returns an empty TracesRequest. -// Deprecated: [v0.49.0] Use ptraceotlp.NewRequest instead. -var NewTracesRequest = ptraceotlp.NewRequest - -// TracesClient is the client API for OTLP-GRPC Traces service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -// Deprecated: [v0.49.0] Use ptraceotlp.Client instead. -type TracesClient = ptraceotlp.Client - -// NewTracesClient returns a new TracesClient connected using the given connection. -// Deprecated: [v0.49.0] Use ptraceotlp.NewClient instead. -var NewTracesClient = ptraceotlp.NewClient - -// TracesServer is the server API for OTLP gRPC TracesService service. -// Deprecated: [v0.49.0] Use ptraceotlp.Server instead. -type TracesServer = ptraceotlp.Server - -// RegisterTracesServer registers the TracesServer to the grpc.Server. -// Deprecated: [v0.49.0] Use ptraceotlp.RegisterServer instead. -var RegisterTracesServer = ptraceotlp.RegisterServer diff --git a/model/pdata/common_alias.go b/model/pdata/common_alias.go deleted file mode 100644 index 1e946a179d9..00000000000 --- a/model/pdata/common_alias.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pdata // import "go.opentelemetry.io/collector/model/pdata" - -// This file contains aliases to data structures that are common for all -// signal types, such as timestamps, attributes, etc. - -import "go.opentelemetry.io/collector/pdata/pcommon" - -// ValueType is an alias for pcommon.ValueType type. -// Deprecated: [v0.49.0] Use pcommon.ValueType instead. -type ValueType = pcommon.ValueType - -const ( - // Deprecated: [v0.49.0] Use pcommon.ValueTypeEmpty instead. - ValueTypeEmpty = pcommon.ValueTypeEmpty - - // Deprecated: [v0.49.0] Use pcommon.ValueTypeString instead. - ValueTypeString = pcommon.ValueTypeString - - // Deprecated: [v0.49.0] Use pcommon.ValueTypeInt instead. - ValueTypeInt = pcommon.ValueTypeInt - - // Deprecated: [v0.49.0] Use pcommon.ValueTypeDouble instead. - ValueTypeDouble = pcommon.ValueTypeDouble - - // Deprecated: [v0.49.0] Use pcommon.ValueTypeBool instead. - ValueTypeBool = pcommon.ValueTypeBool - - // Deprecated: [v0.49.0] Use pcommon.ValueTypeMap instead. - ValueTypeMap = pcommon.ValueTypeMap - - // Deprecated: [v0.49.0] Use pcommon.ValueTypeSlice instead. - ValueTypeSlice = pcommon.ValueTypeSlice - - // Deprecated: [v0.49.0] Use pcommon.ValueTypeBytes instead. - ValueTypeBytes = pcommon.ValueTypeBytes -) - -// Value is an alias for pcommon.Value struct. -// Deprecated: [v0.49.0] Use pcommon.Value instead. -type Value = pcommon.Value - -// Aliases for functions to create pcommon.Value. -var ( - - // Deprecated: [v0.49.0] Use pcommon.NewValueEmpty instead. - NewValueEmpty = pcommon.NewValueEmpty - - // Deprecated: [v0.49.0] Use pcommon.NewValueString instead. - NewValueString = pcommon.NewValueString - - // Deprecated: [v0.49.0] Use pcommon.NewValueInt instead. - NewValueInt = pcommon.NewValueInt - - // Deprecated: [v0.49.0] Use pcommon.NewValueDouble instead. - NewValueDouble = pcommon.NewValueDouble - - // Deprecated: [v0.49.0] Use pcommon.NewValueBool instead. - NewValueBool = pcommon.NewValueBool - - // Deprecated: [v0.49.0] Use pcommon.NewValueMap instead. - NewValueMap = pcommon.NewValueMap - - // Deprecated: [v0.49.0] Use pcommon.NewValueSlice instead. - NewValueSlice = pcommon.NewValueSlice - - // Deprecated: [v0.49.0] Use pcommon.NewValueBytes instead. - NewValueBytes = pcommon.NewValueBytes -) - -// Map is an alias for pcommon.Map struct. -// Deprecated: [v0.49.0] Use pcommon.Map instead. -type Map = pcommon.Map - -// Aliases for functions to create pcommon.Map. -var ( - // Deprecated: [v0.49.0] Use pcommon.NewMap instead. - NewMap = pcommon.NewMap - - // Deprecated: [v0.49.0] Use pcommon.NewMapFromRaw instead. - NewMapFromRaw = pcommon.NewMapFromRaw -) diff --git a/model/pdata/doc.go b/model/pdata/doc.go deleted file mode 100644 index feea31438a2..00000000000 --- a/model/pdata/doc.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package pdata (pipeline data) implements data structures that represent telemetry data in-memory. -// All data received is converted into this format, travels through the pipeline -// in this format, and is converted from this format by exporters when sending. -// -// Current implementation primarily uses OTLP ProtoBuf structs as the underlying data -// structures for many of of the declared structs. We keep a pointer to OTLP protobuf -// in the "orig" member field. This allows efficient translation to/from OTLP wire -// protocol. Note that the underlying data structure is kept private so that we are -// free to make changes to it in the future. -// -// Most of the internal data structures must be created via New* functions. Zero-initialized -// structures, in most cases, are not valid (read comments for each struct to know if that -// is the case). This is a slight deviation from idiomatic Go to avoid unnecessary -// pointer checks in dozens of functions which assume the invariant that "orig" member -// is non-nil. Several structures also provide New*Slice functions that allow creating -// more than one instance of the struct more efficiently instead of calling New* -// repeatedly. Use it where appropriate. -// -// This package also provides common ways for decoding serialized bytes into protocol-specific -// in-memory data models (e.g. Zipkin Span). These data models can then be translated to pdata -// representations. Similarly, pdata types can be translated from a data model which can then -// be serialized into bytes. -// -// * Encoding: Common interfaces for serializing/deserializing bytes from/to protocol-specific data models. -// * Translation: Common interfaces for translating protocol-specific data models from/to pdata types. -// * Marshaling: Common higher level APIs that do both encoding and translation of bytes and data model if going directly pdata types to bytes. -package pdata // import "go.opentelemetry.io/collector/model/pdata" diff --git a/model/pdata/generated_common_alias.go b/model/pdata/generated_common_alias.go deleted file mode 100644 index 56f0c11b171..00000000000 --- a/model/pdata/generated_common_alias.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by "model/internal/cmd/pdatagen/main.go". DO NOT EDIT. -// To regenerate this file run "go run model/internal/cmd/pdatagen/main.go". - -package pdata - -import "go.opentelemetry.io/collector/pdata/pcommon" - -// InstrumentationScope is an alias for pcommon.InstrumentationScope struct. -// Deprecated: [v0.49.0] Use pcommon.InstrumentationScope instead. -type InstrumentationScope = pcommon.InstrumentationScope - -// NewInstrumentationScope is an alias for a function to create a new empty InstrumentationScope. -// Deprecated: [v0.49.0] Use pcommon.InstrumentationScope instead. -var NewInstrumentationScope = pcommon.NewInstrumentationScope - -// Slice is an alias for pcommon.Slice struct. -// Deprecated: [v0.49.0] Use pcommon.Slice instead. -type Slice = pcommon.Slice - -// NewSlice is an alias for a function to create Slice. -// Deprecated: [v0.49.0] Use pcommon.NewSlice instead. -var NewSlice = pcommon.NewSlice diff --git a/model/pdata/generated_plog_alias.go b/model/pdata/generated_plog_alias.go deleted file mode 100644 index 668acadebff..00000000000 --- a/model/pdata/generated_plog_alias.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by "model/internal/cmd/pdatagen/main.go". DO NOT EDIT. -// To regenerate this file run "go run model/internal/cmd/pdatagen/main.go". - -package pdata - -import "go.opentelemetry.io/collector/pdata/plog" - -// ResourceLogsSlice is an alias for plog.ResourceLogsSlice struct. -// Deprecated: [v0.49.0] Use plog.ResourceLogsSlice instead. -type ResourceLogsSlice = plog.ResourceLogsSlice - -// NewResourceLogsSlice is an alias for a function to create ResourceLogsSlice. -// Deprecated: [v0.49.0] Use plog.NewResourceLogsSlice instead. -var NewResourceLogsSlice = plog.NewResourceLogsSlice - -// ResourceLogs is an alias for plog.ResourceLogs struct. -// Deprecated: [v0.49.0] Use plog.ResourceLogs instead. -type ResourceLogs = plog.ResourceLogs - -// NewResourceLogs is an alias for a function to create a new empty ResourceLogs. -// Deprecated: [v0.49.0] Use plog.ResourceLogs instead. -var NewResourceLogs = plog.NewResourceLogs - -// ScopeLogsSlice is an alias for plog.ScopeLogsSlice struct. -// Deprecated: [v0.49.0] Use plog.ScopeLogsSlice instead. -type ScopeLogsSlice = plog.ScopeLogsSlice - -// NewScopeLogsSlice is an alias for a function to create ScopeLogsSlice. -// Deprecated: [v0.49.0] Use plog.NewScopeLogsSlice instead. -var NewScopeLogsSlice = plog.NewScopeLogsSlice - -// ScopeLogs is an alias for plog.ScopeLogs struct. -// Deprecated: [v0.49.0] Use plog.ScopeLogs instead. -type ScopeLogs = plog.ScopeLogs - -// NewScopeLogs is an alias for a function to create a new empty ScopeLogs. -// Deprecated: [v0.49.0] Use plog.ScopeLogs instead. -var NewScopeLogs = plog.NewScopeLogs - -// LogRecordSlice is an alias for plog.LogRecordSlice struct. -// Deprecated: [v0.49.0] Use plog.LogRecordSlice instead. -type LogRecordSlice = plog.LogRecordSlice - -// NewLogRecordSlice is an alias for a function to create LogRecordSlice. -// Deprecated: [v0.49.0] Use plog.NewLogRecordSlice instead. -var NewLogRecordSlice = plog.NewLogRecordSlice - -// LogRecord is an alias for plog.LogRecord struct. -// Deprecated: [v0.49.0] Use plog.LogRecord instead. -type LogRecord = plog.LogRecord - -// NewLogRecord is an alias for a function to create a new empty LogRecord. -// Deprecated: [v0.49.0] Use plog.LogRecord instead. -var NewLogRecord = plog.NewLogRecord diff --git a/model/pdata/generated_pmetric_alias.go b/model/pdata/generated_pmetric_alias.go deleted file mode 100644 index f97b99d6952..00000000000 --- a/model/pdata/generated_pmetric_alias.go +++ /dev/null @@ -1,212 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by "model/internal/cmd/pdatagen/main.go". DO NOT EDIT. -// To regenerate this file run "go run model/internal/cmd/pdatagen/main.go". - -package pdata - -import "go.opentelemetry.io/collector/pdata/pmetric" - -// ResourceMetricsSlice is an alias for pmetric.ResourceMetricsSlice struct. -// Deprecated: [v0.49.0] Use pmetric.ResourceMetricsSlice instead. -type ResourceMetricsSlice = pmetric.ResourceMetricsSlice - -// NewResourceMetricsSlice is an alias for a function to create ResourceMetricsSlice. -// Deprecated: [v0.49.0] Use pmetric.NewResourceMetricsSlice instead. -var NewResourceMetricsSlice = pmetric.NewResourceMetricsSlice - -// ResourceMetrics is an alias for pmetric.ResourceMetrics struct. -// Deprecated: [v0.49.0] Use pmetric.ResourceMetrics instead. -type ResourceMetrics = pmetric.ResourceMetrics - -// NewResourceMetrics is an alias for a function to create a new empty ResourceMetrics. -// Deprecated: [v0.49.0] Use pmetric.ResourceMetrics instead. -var NewResourceMetrics = pmetric.NewResourceMetrics - -// ScopeMetricsSlice is an alias for pmetric.ScopeMetricsSlice struct. -// Deprecated: [v0.49.0] Use pmetric.ScopeMetricsSlice instead. -type ScopeMetricsSlice = pmetric.ScopeMetricsSlice - -// NewScopeMetricsSlice is an alias for a function to create ScopeMetricsSlice. -// Deprecated: [v0.49.0] Use pmetric.NewScopeMetricsSlice instead. -var NewScopeMetricsSlice = pmetric.NewScopeMetricsSlice - -// ScopeMetrics is an alias for pmetric.ScopeMetrics struct. -// Deprecated: [v0.49.0] Use pmetric.ScopeMetrics instead. -type ScopeMetrics = pmetric.ScopeMetrics - -// NewScopeMetrics is an alias for a function to create a new empty ScopeMetrics. -// Deprecated: [v0.49.0] Use pmetric.ScopeMetrics instead. -var NewScopeMetrics = pmetric.NewScopeMetrics - -// MetricSlice is an alias for pmetric.MetricSlice struct. -// Deprecated: [v0.49.0] Use pmetric.MetricSlice instead. -type MetricSlice = pmetric.MetricSlice - -// NewMetricSlice is an alias for a function to create MetricSlice. -// Deprecated: [v0.49.0] Use pmetric.NewMetricSlice instead. -var NewMetricSlice = pmetric.NewMetricSlice - -// Metric is an alias for pmetric.Metric struct. -// Deprecated: [v0.49.0] Use pmetric.Metric instead. -type Metric = pmetric.Metric - -// NewMetric is an alias for a function to create a new empty Metric. -// Deprecated: [v0.49.0] Use pmetric.Metric instead. -var NewMetric = pmetric.NewMetric - -// Gauge is an alias for pmetric.Gauge struct. -// Deprecated: [v0.49.0] Use pmetric.Gauge instead. -type Gauge = pmetric.Gauge - -// NewGauge is an alias for a function to create a new empty Gauge. -// Deprecated: [v0.49.0] Use pmetric.Gauge instead. -var NewGauge = pmetric.NewGauge - -// Sum is an alias for pmetric.Sum struct. -// Deprecated: [v0.49.0] Use pmetric.Sum instead. -type Sum = pmetric.Sum - -// NewSum is an alias for a function to create a new empty Sum. -// Deprecated: [v0.49.0] Use pmetric.Sum instead. -var NewSum = pmetric.NewSum - -// Histogram is an alias for pmetric.Histogram struct. -// Deprecated: [v0.49.0] Use pmetric.Histogram instead. -type Histogram = pmetric.Histogram - -// NewHistogram is an alias for a function to create a new empty Histogram. -// Deprecated: [v0.49.0] Use pmetric.Histogram instead. -var NewHistogram = pmetric.NewHistogram - -// ExponentialHistogram is an alias for pmetric.ExponentialHistogram struct. -// Deprecated: [v0.49.0] Use pmetric.ExponentialHistogram instead. -type ExponentialHistogram = pmetric.ExponentialHistogram - -// NewExponentialHistogram is an alias for a function to create a new empty ExponentialHistogram. -// Deprecated: [v0.49.0] Use pmetric.ExponentialHistogram instead. -var NewExponentialHistogram = pmetric.NewExponentialHistogram - -// Summary is an alias for pmetric.Summary struct. -// Deprecated: [v0.49.0] Use pmetric.Summary instead. -type Summary = pmetric.Summary - -// NewSummary is an alias for a function to create a new empty Summary. -// Deprecated: [v0.49.0] Use pmetric.Summary instead. -var NewSummary = pmetric.NewSummary - -// NumberDataPointSlice is an alias for pmetric.NumberDataPointSlice struct. -// Deprecated: [v0.49.0] Use pmetric.NumberDataPointSlice instead. -type NumberDataPointSlice = pmetric.NumberDataPointSlice - -// NewNumberDataPointSlice is an alias for a function to create NumberDataPointSlice. -// Deprecated: [v0.49.0] Use pmetric.NewNumberDataPointSlice instead. -var NewNumberDataPointSlice = pmetric.NewNumberDataPointSlice - -// NumberDataPoint is an alias for pmetric.NumberDataPoint struct. -// Deprecated: [v0.49.0] Use pmetric.NumberDataPoint instead. -type NumberDataPoint = pmetric.NumberDataPoint - -// NewNumberDataPoint is an alias for a function to create a new empty NumberDataPoint. -// Deprecated: [v0.49.0] Use pmetric.NumberDataPoint instead. -var NewNumberDataPoint = pmetric.NewNumberDataPoint - -// HistogramDataPointSlice is an alias for pmetric.HistogramDataPointSlice struct. -// Deprecated: [v0.49.0] Use pmetric.HistogramDataPointSlice instead. -type HistogramDataPointSlice = pmetric.HistogramDataPointSlice - -// NewHistogramDataPointSlice is an alias for a function to create HistogramDataPointSlice. -// Deprecated: [v0.49.0] Use pmetric.NewHistogramDataPointSlice instead. -var NewHistogramDataPointSlice = pmetric.NewHistogramDataPointSlice - -// HistogramDataPoint is an alias for pmetric.HistogramDataPoint struct. -// Deprecated: [v0.49.0] Use pmetric.HistogramDataPoint instead. -type HistogramDataPoint = pmetric.HistogramDataPoint - -// NewHistogramDataPoint is an alias for a function to create a new empty HistogramDataPoint. -// Deprecated: [v0.49.0] Use pmetric.HistogramDataPoint instead. -var NewHistogramDataPoint = pmetric.NewHistogramDataPoint - -// ExponentialHistogramDataPointSlice is an alias for pmetric.ExponentialHistogramDataPointSlice struct. -// Deprecated: [v0.49.0] Use pmetric.ExponentialHistogramDataPointSlice instead. -type ExponentialHistogramDataPointSlice = pmetric.ExponentialHistogramDataPointSlice - -// NewExponentialHistogramDataPointSlice is an alias for a function to create ExponentialHistogramDataPointSlice. -// Deprecated: [v0.49.0] Use pmetric.NewExponentialHistogramDataPointSlice instead. -var NewExponentialHistogramDataPointSlice = pmetric.NewExponentialHistogramDataPointSlice - -// ExponentialHistogramDataPoint is an alias for pmetric.ExponentialHistogramDataPoint struct. -// Deprecated: [v0.49.0] Use pmetric.ExponentialHistogramDataPoint instead. -type ExponentialHistogramDataPoint = pmetric.ExponentialHistogramDataPoint - -// NewExponentialHistogramDataPoint is an alias for a function to create a new empty ExponentialHistogramDataPoint. -// Deprecated: [v0.49.0] Use pmetric.ExponentialHistogramDataPoint instead. -var NewExponentialHistogramDataPoint = pmetric.NewExponentialHistogramDataPoint - -// Buckets is an alias for pmetric.Buckets struct. -// Deprecated: [v0.49.0] Use pmetric.Buckets instead. -type Buckets = pmetric.Buckets - -// NewBuckets is an alias for a function to create a new empty Buckets. -// Deprecated: [v0.49.0] Use pmetric.Buckets instead. -var NewBuckets = pmetric.NewBuckets - -// SummaryDataPointSlice is an alias for pmetric.SummaryDataPointSlice struct. -// Deprecated: [v0.49.0] Use pmetric.SummaryDataPointSlice instead. -type SummaryDataPointSlice = pmetric.SummaryDataPointSlice - -// NewSummaryDataPointSlice is an alias for a function to create SummaryDataPointSlice. -// Deprecated: [v0.49.0] Use pmetric.NewSummaryDataPointSlice instead. -var NewSummaryDataPointSlice = pmetric.NewSummaryDataPointSlice - -// SummaryDataPoint is an alias for pmetric.SummaryDataPoint struct. -// Deprecated: [v0.49.0] Use pmetric.SummaryDataPoint instead. -type SummaryDataPoint = pmetric.SummaryDataPoint - -// NewSummaryDataPoint is an alias for a function to create a new empty SummaryDataPoint. -// Deprecated: [v0.49.0] Use pmetric.SummaryDataPoint instead. -var NewSummaryDataPoint = pmetric.NewSummaryDataPoint - -// ValueAtQuantileSlice is an alias for pmetric.ValueAtQuantileSlice struct. -// Deprecated: [v0.49.0] Use pmetric.ValueAtQuantileSlice instead. -type ValueAtQuantileSlice = pmetric.ValueAtQuantileSlice - -// NewValueAtQuantileSlice is an alias for a function to create ValueAtQuantileSlice. -// Deprecated: [v0.49.0] Use pmetric.NewValueAtQuantileSlice instead. -var NewValueAtQuantileSlice = pmetric.NewValueAtQuantileSlice - -// ValueAtQuantile is an alias for pmetric.ValueAtQuantile struct. -// Deprecated: [v0.49.0] Use pmetric.ValueAtQuantile instead. -type ValueAtQuantile = pmetric.ValueAtQuantile - -// NewValueAtQuantile is an alias for a function to create a new empty ValueAtQuantile. -// Deprecated: [v0.49.0] Use pmetric.ValueAtQuantile instead. -var NewValueAtQuantile = pmetric.NewValueAtQuantile - -// ExemplarSlice is an alias for pmetric.ExemplarSlice struct. -// Deprecated: [v0.49.0] Use pmetric.ExemplarSlice instead. -type ExemplarSlice = pmetric.ExemplarSlice - -// NewExemplarSlice is an alias for a function to create ExemplarSlice. -// Deprecated: [v0.49.0] Use pmetric.NewExemplarSlice instead. -var NewExemplarSlice = pmetric.NewExemplarSlice - -// Exemplar is an alias for pmetric.Exemplar struct. -// Deprecated: [v0.49.0] Use pmetric.Exemplar instead. -type Exemplar = pmetric.Exemplar - -// NewExemplar is an alias for a function to create a new empty Exemplar. -// Deprecated: [v0.49.0] Use pmetric.Exemplar instead. -var NewExemplar = pmetric.NewExemplar diff --git a/model/pdata/generated_ptrace_alias.go b/model/pdata/generated_ptrace_alias.go deleted file mode 100644 index e6242e9b649..00000000000 --- a/model/pdata/generated_ptrace_alias.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by "model/internal/cmd/pdatagen/main.go". DO NOT EDIT. -// To regenerate this file run "go run model/internal/cmd/pdatagen/main.go". - -package pdata - -import "go.opentelemetry.io/collector/pdata/ptrace" - -// ResourceSpansSlice is an alias for ptrace.ResourceSpansSlice struct. -// Deprecated: [v0.49.0] Use ptrace.ResourceSpansSlice instead. -type ResourceSpansSlice = ptrace.ResourceSpansSlice - -// NewResourceSpansSlice is an alias for a function to create ResourceSpansSlice. -// Deprecated: [v0.49.0] Use ptrace.NewResourceSpansSlice instead. -var NewResourceSpansSlice = ptrace.NewResourceSpansSlice - -// ResourceSpans is an alias for ptrace.ResourceSpans struct. -// Deprecated: [v0.49.0] Use ptrace.ResourceSpans instead. -type ResourceSpans = ptrace.ResourceSpans - -// NewResourceSpans is an alias for a function to create a new empty ResourceSpans. -// Deprecated: [v0.49.0] Use ptrace.ResourceSpans instead. -var NewResourceSpans = ptrace.NewResourceSpans - -// ScopeSpansSlice is an alias for ptrace.ScopeSpansSlice struct. -// Deprecated: [v0.49.0] Use ptrace.ScopeSpansSlice instead. -type ScopeSpansSlice = ptrace.ScopeSpansSlice - -// NewScopeSpansSlice is an alias for a function to create ScopeSpansSlice. -// Deprecated: [v0.49.0] Use ptrace.NewScopeSpansSlice instead. -var NewScopeSpansSlice = ptrace.NewScopeSpansSlice - -// ScopeSpans is an alias for ptrace.ScopeSpans struct. -// Deprecated: [v0.49.0] Use ptrace.ScopeSpans instead. -type ScopeSpans = ptrace.ScopeSpans - -// NewScopeSpans is an alias for a function to create a new empty ScopeSpans. -// Deprecated: [v0.49.0] Use ptrace.ScopeSpans instead. -var NewScopeSpans = ptrace.NewScopeSpans - -// SpanSlice is an alias for ptrace.SpanSlice struct. -// Deprecated: [v0.49.0] Use ptrace.SpanSlice instead. -type SpanSlice = ptrace.SpanSlice - -// NewSpanSlice is an alias for a function to create SpanSlice. -// Deprecated: [v0.49.0] Use ptrace.NewSpanSlice instead. -var NewSpanSlice = ptrace.NewSpanSlice - -// Span is an alias for ptrace.Span struct. -// Deprecated: [v0.49.0] Use ptrace.Span instead. -type Span = ptrace.Span - -// NewSpan is an alias for a function to create a new empty Span. -// Deprecated: [v0.49.0] Use ptrace.Span instead. -var NewSpan = ptrace.NewSpan - -// SpanEventSlice is an alias for ptrace.SpanEventSlice struct. -// Deprecated: [v0.49.0] Use ptrace.SpanEventSlice instead. -type SpanEventSlice = ptrace.SpanEventSlice - -// NewSpanEventSlice is an alias for a function to create SpanEventSlice. -// Deprecated: [v0.49.0] Use ptrace.NewSpanEventSlice instead. -var NewSpanEventSlice = ptrace.NewSpanEventSlice - -// SpanEvent is an alias for ptrace.SpanEvent struct. -// Deprecated: [v0.49.0] Use ptrace.SpanEvent instead. -type SpanEvent = ptrace.SpanEvent - -// NewSpanEvent is an alias for a function to create a new empty SpanEvent. -// Deprecated: [v0.49.0] Use ptrace.SpanEvent instead. -var NewSpanEvent = ptrace.NewSpanEvent - -// SpanLinkSlice is an alias for ptrace.SpanLinkSlice struct. -// Deprecated: [v0.49.0] Use ptrace.SpanLinkSlice instead. -type SpanLinkSlice = ptrace.SpanLinkSlice - -// NewSpanLinkSlice is an alias for a function to create SpanLinkSlice. -// Deprecated: [v0.49.0] Use ptrace.NewSpanLinkSlice instead. -var NewSpanLinkSlice = ptrace.NewSpanLinkSlice - -// SpanLink is an alias for ptrace.SpanLink struct. -// Deprecated: [v0.49.0] Use ptrace.SpanLink instead. -type SpanLink = ptrace.SpanLink - -// NewSpanLink is an alias for a function to create a new empty SpanLink. -// Deprecated: [v0.49.0] Use ptrace.SpanLink instead. -var NewSpanLink = ptrace.NewSpanLink - -// SpanStatus is an alias for ptrace.SpanStatus struct. -// Deprecated: [v0.49.0] Use ptrace.SpanStatus instead. -type SpanStatus = ptrace.SpanStatus - -// NewSpanStatus is an alias for a function to create a new empty SpanStatus. -// Deprecated: [v0.49.0] Use ptrace.SpanStatus instead. -var NewSpanStatus = ptrace.NewSpanStatus diff --git a/model/pdata/generated_resource_alias.go b/model/pdata/generated_resource_alias.go deleted file mode 100644 index 9cf9959d7a4..00000000000 --- a/model/pdata/generated_resource_alias.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by "model/internal/cmd/pdatagen/main.go". DO NOT EDIT. -// To regenerate this file run "go run model/internal/cmd/pdatagen/main.go". - -package pdata - -import "go.opentelemetry.io/collector/pdata/pcommon" - -// Resource is an alias for pcommon.Resource struct. -// Deprecated: [v0.49.0] Use pcommon.Resource instead. -type Resource = pcommon.Resource - -// NewResource is an alias for a function to create a new empty Resource. -// Deprecated: [v0.49.0] Use pcommon.Resource instead. -var NewResource = pcommon.NewResource diff --git a/model/pdata/logs_alias.go b/model/pdata/logs_alias.go deleted file mode 100644 index ac6df12d4d6..00000000000 --- a/model/pdata/logs_alias.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pdata // import "go.opentelemetry.io/collector/model/pdata" - -// This file contains aliases for log data structures. - -import "go.opentelemetry.io/collector/pdata/plog" - -// LogsMarshaler is an alias for plog.Marshaler interface. -// Deprecated: [v0.49.0] Use plog.Marshaler instead. -type LogsMarshaler = plog.Marshaler - -// LogsUnmarshaler is an alias for plog.Unmarshaler interface. -// Deprecated: [v0.49.0] Use plog.Unmarshaler instead. -type LogsUnmarshaler = plog.Unmarshaler - -// LogsSizer is an alias for plog.Sizer interface. -// Deprecated: [v0.49.0] Use plog.Sizer instead. -type LogsSizer = plog.Sizer - -// Logs is an alias for plog.Logs struct. -// Deprecated: [v0.49.0] Use plog.Logs instead. -type Logs = plog.Logs - -// NewLogs is an alias for a function to create new Logs. -// Deprecated: [v0.49.0] Use plog.NewLogs instead. -var NewLogs = plog.NewLogs - -// SeverityNumber is an alias for plog.SeverityNumber type. -// Deprecated: [v0.49.0] Use plog.SeverityNumber instead. -type SeverityNumber = plog.SeverityNumber - -const ( - - // Deprecated: [v0.49.0] Use plog.SeverityNumberUNDEFINED instead. - SeverityNumberUNDEFINED = plog.SeverityNumberUNDEFINED - - // Deprecated: [v0.49.0] Use plog.SeverityNumberTRACE instead. - SeverityNumberTRACE = plog.SeverityNumberTRACE - - // Deprecated: [v0.49.0] Use plog.SeverityNumberTRACE2 instead. - SeverityNumberTRACE2 = plog.SeverityNumberTRACE2 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberTRACE3 instead. - SeverityNumberTRACE3 = plog.SeverityNumberTRACE3 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberTRACE4 instead. - SeverityNumberTRACE4 = plog.SeverityNumberTRACE4 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberDEBUG instead. - SeverityNumberDEBUG = plog.SeverityNumberDEBUG - - // Deprecated: [v0.49.0] Use plog.SeverityNumberDEBUG2 instead. - SeverityNumberDEBUG2 = plog.SeverityNumberDEBUG2 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberDEBUG3 instead. - SeverityNumberDEBUG3 = plog.SeverityNumberDEBUG3 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberDEBUG4 instead. - SeverityNumberDEBUG4 = plog.SeverityNumberDEBUG4 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberINFO instead. - SeverityNumberINFO = plog.SeverityNumberINFO - - // Deprecated: [v0.49.0] Use plog.SeverityNumberINFO2 instead. - SeverityNumberINFO2 = plog.SeverityNumberINFO2 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberINFO3 instead. - SeverityNumberINFO3 = plog.SeverityNumberINFO3 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberINFO4 instead. - SeverityNumberINFO4 = plog.SeverityNumberINFO4 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberWARN instead. - SeverityNumberWARN = plog.SeverityNumberWARN - - // Deprecated: [v0.49.0] Use plog.SeverityNumberWARN2 instead. - SeverityNumberWARN2 = plog.SeverityNumberWARN2 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberWARN3 instead. - SeverityNumberWARN3 = plog.SeverityNumberWARN3 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberWARN4 instead. - SeverityNumberWARN4 = plog.SeverityNumberWARN4 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberERROR instead. - SeverityNumberERROR = plog.SeverityNumberERROR - - // Deprecated: [v0.49.0] Use plog.SeverityNumberERROR2 instead. - SeverityNumberERROR2 = plog.SeverityNumberERROR2 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberERROR3 instead. - SeverityNumberERROR3 = plog.SeverityNumberERROR3 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberERROR4 instead. - SeverityNumberERROR4 = plog.SeverityNumberERROR4 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberFATAL instead. - SeverityNumberFATAL = plog.SeverityNumberFATAL - - // Deprecated: [v0.49.0] Use plog.SeverityNumberFATAL2 instead. - SeverityNumberFATAL2 = plog.SeverityNumberFATAL2 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberFATAL3 instead. - SeverityNumberFATAL3 = plog.SeverityNumberFATAL3 - - // Deprecated: [v0.49.0] Use plog.SeverityNumberFATAL4 instead. - SeverityNumberFATAL4 = plog.SeverityNumberFATAL4 -) diff --git a/model/pdata/metrics_alias.go b/model/pdata/metrics_alias.go deleted file mode 100644 index 8a410012396..00000000000 --- a/model/pdata/metrics_alias.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pdata // import "go.opentelemetry.io/collector/model/pdata" - -// This file contains aliases for metric data structures. - -import "go.opentelemetry.io/collector/pdata/pmetric" - -// MetricsMarshaler is an alias for pmetric.Marshaler interface. -// Deprecated: [v0.49.0] Use pmetric.Marshaler instead. -type MetricsMarshaler = pmetric.Marshaler - -// MetricsUnmarshaler is an alias for pmetric.Unmarshaler interface. -// Deprecated: [v0.49.0] Use pmetric.Unmarshaler instead. -type MetricsUnmarshaler = pmetric.Unmarshaler - -// MetricsSizer is an alias for pmetric.Sizer interface. -// Deprecated: [v0.49.0] Use pmetric.Sizer instead. -type MetricsSizer = pmetric.Sizer - -// Metrics is an alias for pmetric.Metrics structure. -// Deprecated: [v0.49.0] Use pmetric.Metrics instead. -type Metrics = pmetric.Metrics - -// NewMetrics is an alias for a function to create new Metrics. -// Deprecated: [v0.49.0] Use pmetric.NewMetrics instead. -var NewMetrics = pmetric.NewMetrics - -// MetricDataType is an alias for pmetric.MetricDataType type. -// Deprecated: [v0.49.0] Use pmetric.MetricDataType instead. -type MetricDataType = pmetric.MetricDataType - -const ( - - // Deprecated: [v0.49.0] Use pmetric.MetricDataTypeNone instead. - MetricDataTypeNone = pmetric.MetricDataTypeNone - - // Deprecated: [v0.49.0] Use pmetric.MetricDataTypeGauge instead. - MetricDataTypeGauge = pmetric.MetricDataTypeGauge - - // Deprecated: [v0.49.0] Use pmetric.MetricDataTypeSum instead. - MetricDataTypeSum = pmetric.MetricDataTypeSum - - // Deprecated: [v0.49.0] Use pmetric.MetricDataTypeHistogram instead. - MetricDataTypeHistogram = pmetric.MetricDataTypeHistogram - - // Deprecated: [v0.49.0] Use pmetric.MetricDataTypeExponentialHistogram instead. - MetricDataTypeExponentialHistogram = pmetric.MetricDataTypeExponentialHistogram - - // Deprecated: [v0.49.0] Use pmetric.MetricDataTypeSummary instead. - MetricDataTypeSummary = pmetric.MetricDataTypeSummary -) - -// MetricAggregationTemporality is an alias for pmetric.MetricAggregationTemporality type. -// Deprecated: [v0.49.0] Use pmetric.MetricAggregationTemporality instead. -type MetricAggregationTemporality = pmetric.MetricAggregationTemporality - -const ( - - // Deprecated: [v0.49.0] Use pmetric.MetricAggregationTemporalityUnspecified instead. - MetricAggregationTemporalityUnspecified = pmetric.MetricAggregationTemporalityUnspecified - - // Deprecated: [v0.49.0] Use pmetric.MetricAggregationTemporalityDelta instead. - MetricAggregationTemporalityDelta = pmetric.MetricAggregationTemporalityDelta - - // Deprecated: [v0.49.0] Use pmetric.MetricAggregationTemporalityCumulative instead. - MetricAggregationTemporalityCumulative = pmetric.MetricAggregationTemporalityCumulative -) - -// MetricDataPointFlags is an alias for pmetric.MetricDataPointFlags type. -// Deprecated: [v0.49.0] Use pmetric.MetricDataPointFlags instead. -type MetricDataPointFlags = pmetric.MetricDataPointFlags - -const ( - // Deprecated: [v0.49.0] Use pmetric.MetricDataPointFlagsNone instead. - MetricDataPointFlagsNone = pmetric.MetricDataPointFlagsNone -) - -// NewMetricDataPointFlags is an alias for a function to create new MetricDataPointFlags. -// Deprecated: [v0.49.0] Use pmetric.NewMetricDataPointFlags instead. -var NewMetricDataPointFlags = pmetric.NewMetricDataPointFlags - -// MetricDataPointFlag is an alias for pmetric.MetricDataPointFlag type. -// Deprecated: [v0.49.0] Use pmetric.MetricDataPointFlag instead. -type MetricDataPointFlag = pmetric.MetricDataPointFlag - -const ( - // Deprecated: [v0.49.0] Use pmetric.MetricDataPointFlagNoRecordedValue instead. - MetricDataPointFlagNoRecordedValue = pmetric.MetricDataPointFlagNoRecordedValue -) - -// MetricValueType is an alias for pmetric.MetricValueType type. -// Deprecated: [v0.49.0] Use pmetric.MetricValueType instead. -type MetricValueType = pmetric.MetricValueType //nolint:staticcheck - -const ( - - // Deprecated: [v0.49.0] Use pmetric.MetricValueTypeNone instead. - MetricValueTypeNone = pmetric.MetricValueTypeNone //nolint:staticcheck - - // Deprecated: [v0.49.0] Use pmetric.MetricValueTypeInt instead. - MetricValueTypeInt = pmetric.MetricValueTypeInt //nolint:staticcheck - - // Deprecated: [v0.49.0] Use pmetric.MetricValueTypeDouble instead. - MetricValueTypeDouble = pmetric.MetricValueTypeDouble //nolint:staticcheck -) diff --git a/model/pdata/spanid_alias.go b/model/pdata/spanid_alias.go deleted file mode 100644 index 4e6b6bbe1ac..00000000000 --- a/model/pdata/spanid_alias.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pdata // import "go.opentelemetry.io/collector/model/pdata" - -import "go.opentelemetry.io/collector/pdata/pcommon" - -// SpanID is an alias for pcommon.SpanID struct. -// Deprecated: [v0.49.0] Use pcommon.SpanID instead. -type SpanID = pcommon.SpanID - -// InvalidSpanID is an alias for pcommon.InvalidSpanID function. -// Deprecated: [v0.49.0] Use pcommon.InvalidSpanID instead. -var InvalidSpanID = pcommon.InvalidSpanID - -// NewSpanID is an alias for a function to create new SpanID. -// Deprecated: [v0.49.0] Use pcommon.NewSpanID instead. -var NewSpanID = pcommon.NewSpanID diff --git a/model/pdata/timestamp_alias.go b/model/pdata/timestamp_alias.go deleted file mode 100644 index f32c0f17b7a..00000000000 --- a/model/pdata/timestamp_alias.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pdata // import "go.opentelemetry.io/collector/model/pdata" - -import "go.opentelemetry.io/collector/pdata/pcommon" - -// Timestamp is a an alias for pcommon.Timestamp. -// Deprecated: [v0.49.0] Use pcommon.Timestamp instead. -type Timestamp = pcommon.Timestamp - -// NewTimestampFromTime is an alias for pcommon.NewTimestampFromTime function. -// Deprecated: [v0.49.0] Use pcommon.NewTimestampFromTime instead. -var NewTimestampFromTime = pcommon.NewTimestampFromTime diff --git a/model/pdata/traceid_alias.go b/model/pdata/traceid_alias.go deleted file mode 100644 index 3338a563b24..00000000000 --- a/model/pdata/traceid_alias.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pdata // import "go.opentelemetry.io/collector/model/pdata" - -import "go.opentelemetry.io/collector/pdata/pcommon" - -// TraceID is an alias for pcommon.TraceID struct. -// Deprecated: [v0.49.0] Use pcommon.TraceID instead. -type TraceID = pcommon.TraceID - -// InvalidTraceID is an alias for pcommon.InvalidTraceID function. -// Deprecated: [v0.49.0] Use pcommon.InvalidTraceID instead. -var InvalidTraceID = pcommon.InvalidTraceID - -// NewTraceID is an alias for a function to create new TraceID. -// Deprecated: [v0.49.0] Use pcommon.NewTraceID instead. -var NewTraceID = pcommon.NewTraceID diff --git a/model/pdata/traces_alias.go b/model/pdata/traces_alias.go deleted file mode 100644 index deb182db12b..00000000000 --- a/model/pdata/traces_alias.go +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pdata // import "go.opentelemetry.io/collector/model/pdata" - -// This file contains aliases for trace data structures. - -import "go.opentelemetry.io/collector/pdata/ptrace" - -// TracesMarshaler is an alias for ptrace.Marshaler interface. -// Deprecated: [v0.49.0] Use ptrace.Marshaler instead. -type TracesMarshaler = ptrace.Marshaler - -// TracesUnmarshaler is an alias for ptrace.Unmarshaler interface. -// Deprecated: [v0.49.0] Use ptrace.Unmarshaler instead. -type TracesUnmarshaler = ptrace.Unmarshaler - -// TracesSizer is an alias for ptrace.Sizer interface. -// Deprecated: [v0.49.0] Use ptrace.Sizer instead. -type TracesSizer = ptrace.Sizer - -// Traces is an alias for ptrace.Traces struct. -// Deprecated: [v0.49.0] Use ptrace.Traces instead. -type Traces = ptrace.Traces - -// NewTraces is an alias for a function to create new Traces. -// Deprecated: [v0.49.0] Use ptrace.NewTraces instead. -var NewTraces = ptrace.NewTraces - -// TraceState is an alias for ptrace.TraceState type. -// Deprecated: [v0.49.0] Use ptrace.TraceState instead. -type TraceState = ptrace.TraceState - -const ( - TraceStateEmpty = ptrace.TraceStateEmpty -) - -// SpanKind is an alias for ptrace.SpanKind type. -// Deprecated: [v0.49.0] Use ptrace.SpanKind instead. -type SpanKind = ptrace.SpanKind - -const ( - - // Deprecated: [v0.49.0] Use ptrace.SpanKindUnspecified instead. - SpanKindUnspecified = ptrace.SpanKindUnspecified - - // Deprecated: [v0.49.0] Use ptrace.SpanKindInternal instead. - SpanKindInternal = ptrace.SpanKindInternal - - // Deprecated: [v0.49.0] Use ptrace.SpanKindServer instead. - SpanKindServer = ptrace.SpanKindServer - - // Deprecated: [v0.49.0] Use ptrace.SpanKindClient instead. - SpanKindClient = ptrace.SpanKindClient - - // Deprecated: [v0.49.0] Use ptrace.SpanKindProducer instead. - SpanKindProducer = ptrace.SpanKindProducer - - // Deprecated: [v0.49.0] Use ptrace.SpanKindConsumer instead. - SpanKindConsumer = ptrace.SpanKindConsumer -) - -// StatusCode is an alias for ptrace.StatusCode type. -// Deprecated: [v0.49.0] Use ptrace.StatusCode instead. -type StatusCode = ptrace.StatusCode - -const ( - - // Deprecated: [v0.49.0] Use ptrace.StatusCodeUnset instead. - StatusCodeUnset = ptrace.StatusCodeUnset - - // Deprecated: [v0.49.0] Use ptrace.StatusCodeOk instead. - StatusCodeOk = ptrace.StatusCodeOk - - // Deprecated: [v0.49.0] Use ptrace.StatusCodeError instead. - StatusCodeError = ptrace.StatusCodeError -) diff --git a/model/semconv/v1.5.0/generated_resource.go b/model/semconv/v1.5.0/generated_resource.go deleted file mode 100644 index 62589e2df62..00000000000 --- a/model/semconv/v1.5.0/generated_resource.go +++ /dev/null @@ -1,1125 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.5.0" - -// A cloud environment (e.g. GCP, Azure, AWS) -const ( - // Name of the cloud provider. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProvider = "cloud.provider" - // The cloud account ID the resource is assigned to. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '111111111111', 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAccountID = "cloud.account.id" - // The geographical region the resource is running. Refer to your provider's docs - // to see the available regions, for example AWS regions, Azure regions, or Google - // Cloud regions. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-central1', 'us-east-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudRegion = "cloud.region" - // Cloud regions often have multiple, isolated locations known as zones to - // increase availability. Availability zone represents the zone where the resource - // is running. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-east-1c' - // Note: Availability zones are called "zones" on Google Cloud. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAvailabilityZone = "cloud.availability_zone" - // The cloud platform in use. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: The prefix of the service SHOULD match the one specified in - // cloud.provider. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatform = "cloud.platform" -) - -const ( - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderGCP = "gcp" -) - -const ( - // AWS Elastic Compute Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEC2 = "aws_ec2" - // AWS Elastic Container Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSECS = "aws_ecs" - // AWS Elastic Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEKS = "aws_eks" - // AWS Lambda - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSLambda = "aws_lambda" - // AWS Elastic Beanstalk - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" - // Azure Virtual Machines - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureVM = "azure_vm" - // Azure Container Instances - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" - // Azure Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAKS = "azure_aks" - // Azure Functions - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureFunctions = "azure_functions" - // Azure App Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAppService = "azure_app_service" - // Google Cloud Compute Engine (GCE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" - // Google Cloud Run - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" - // Google Cloud Kubernetes Engine (GKE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" - // Google Cloud Functions (GCF) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" - // Google Cloud App Engine (GAE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" -) - -// Resources used by AWS Elastic Container Service (ECS). -const ( - // The Amazon Resource Name (ARN) of an ECS container instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSContainerARN = "aws.ecs.container.arn" - // The ARN of an ECS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" - // The launch type for an ECS task. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtype = "aws.ecs.launchtype" - // The ARN of an ECS task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskARN = "aws.ecs.task.arn" - // The task definition family this task definition is a member of. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-family' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskFamily = "aws.ecs.task.family" - // The revision for this task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '8', '26' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskRevision = "aws.ecs.task.revision" -) - -const ( - // ec2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeEC2 = "ec2" - // fargate - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeFargate = "fargate" -) - -// Resources used by AWS Elastic Kubernetes Service (EKS). -const ( - // The ARN of an EKS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" -) - -// Resources specific to Amazon Web Services. -const ( - // The name(s) of the AWS log group(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '/aws/lambda/my-function', 'opentelemetry-service' - // Note: Multiple log groups must be supported for cases like multi-container - // applications, where a single application has sidecar containers, and each write - // to their own log group. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupNames = "aws.log.group.names" - // The Amazon Resource Name(s) (ARN) of the AWS log group(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' - // Note: See the log group ARN format documentation. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupARNs = "aws.log.group.arns" - // The name(s) of the AWS log stream(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamNames = "aws.log.stream.names" - // The ARN(s) of the AWS log stream(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log- - // stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Note: See the log stream ARN format documentation. One log group can contain - // several log streams, so these ARNs necessarily identify both a log group and a - // log stream. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamARNs = "aws.log.stream.arns" -) - -// A container instance. -const ( - // Container name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerName = "container.name" - // Container ID. Usually a UUID, as for example used to identify Docker - // containers. The UUID might be abbreviated. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'a3bf90e006b2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerID = "container.id" - // The container runtime managing this container. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'docker', 'containerd', 'rkt' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerRuntime = "container.runtime" - // Name of the image the container was built on. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'gcr.io/opentelemetry/operator' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageName = "container.image.name" - // Container image tag. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageTag = "container.image.tag" -) - -// The software deployment. -const ( - // Name of the deployment environment (aka deployment tier). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'staging', 'production' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeploymentEnvironment = "deployment.environment" -) - -// The device on which the process represented by this resource is running. -const ( - // A unique identifier representing the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2ab2916d-a51f-4ac8-80ee-45ac31a28092' - // Note: The device identifier MUST only be defined using the values outlined - // below. This value is not an advertising identifier and MUST NOT be used as - // such. On iOS (Swift or Objective-C), this value MUST be equal to the vendor - // identifier. On Android (Java or Kotlin), this value MUST be equal to the - // Firebase Installation ID or a globally unique UUID which is persisted across - // sessions in your application. More information can be found here on best - // practices and exact implementation details. Caution should be taken when - // storing personal data or anything which can identify a user. GDPR and data - // protection laws may apply, ensure you do your own due diligence. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceID = "device.id" - // The model identifier for the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone3,4', 'SM-G920F' - // Note: It's recommended this value represents a machine readable version of the - // model identifier rather than the market or consumer-friendly name of the - // device. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelIdentifier = "device.model.identifier" - // The marketing name for the device model - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone 6s Plus', 'Samsung Galaxy S6' - // Note: It's recommended this value represents a human readable version of the - // device model rather than a machine readable alternative. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelName = "device.model.name" -) - -// A serverless instance. -const ( - // The name of the single function that this runtime instance executes. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: This is the name of the function as configured/deployed on the FaaS - // platform and is usually different from the name of the callback function (which - // may be stored in the code.namespace/code.function span attributes). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSName = "faas.name" - // The unique ID of the single function that this runtime instance executes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' - // Note: Depending on the cloud provider, use: - // Take care not to use the "invoked ARN" directly but replace any - // alias suffix with the resolved function version, as the same runtime instance - // may be invokable with multiple - // different aliases. - // On some providers, it may not be possible to determine the full ID at startup, - // which is why this field cannot be made required. For example, on AWS the - // account ID - // part of the ARN is not available without calling another AWS API - // which may be deemed too slow for a short-running lambda function. - // As an alternative, consider setting faas.id as a span attribute instead. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSID = "faas.id" - // The immutable version of the function being executed. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '26', 'pinkfroid-00002' - // Note: Depending on the cloud provider and platform, use: - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSVersion = "faas.version" - // The execution environment ID as a string, that will be potentially reused for - // other invocations to the same function/function version. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' - // Note: - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInstance = "faas.instance" - // The amount of memory available to the serverless function in MiB. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 128 - // Note: It's recommended to set this attribute since e.g. too little memory can - // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, - // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this - // information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSMaxMemory = "faas.max_memory" -) - -// A host is defined as a general computing instance. -const ( - // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud - // provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostID = "host.id" - // Name of the host. On Unix systems, it may contain what the hostname command - // returns, or the fully qualified hostname, or another name specified by the - // user. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostName = "host.name" - // Type of host. For Cloud, this must be the machine type. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'n1-standard-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostType = "host.type" - // The CPU architecture the host system is running on. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArch = "host.arch" - // Name of the VM image or OS install the host was instantiated from. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageName = "host.image.name" - // VM image ID. For Cloud, this value is from the provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ami-07b06b442921831e5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageID = "host.image.id" - // The version string of the VM image as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageVersion = "host.image.version" -) - -const ( - // AMD64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchAMD64 = "amd64" - // ARM32 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM32 = "arm32" - // ARM64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM64 = "arm64" - // Itanium - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchIA64 = "ia64" - // 32-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC32 = "ppc32" - // 64-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC64 = "ppc64" - // 32-bit x86 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchX86 = "x86" -) - -// A Kubernetes Cluster. -const ( - // The name of the cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SClusterName = "k8s.cluster.name" -) - -// A Kubernetes Node object. -const ( - // The name of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'node-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeName = "k8s.node.name" - // The UID of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeUID = "k8s.node.uid" -) - -// A Kubernetes Namespace. -const ( - // The name of the namespace that the pod is running in. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNamespaceName = "k8s.namespace.name" -) - -// A Kubernetes Pod object. -const ( - // The UID of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodUID = "k8s.pod.uid" - // The name of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-pod-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodName = "k8s.pod.name" -) - -// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). -const ( - // The name of the Container in a Pod template. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'redis' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SContainerName = "k8s.container.name" -) - -// A Kubernetes ReplicaSet object. -const ( - // The UID of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetUID = "k8s.replicaset.uid" - // The name of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetName = "k8s.replicaset.name" -) - -// A Kubernetes Deployment object. -const ( - // The UID of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentUID = "k8s.deployment.uid" - // The name of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentName = "k8s.deployment.name" -) - -// A Kubernetes StatefulSet object. -const ( - // The UID of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetUID = "k8s.statefulset.uid" - // The name of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetName = "k8s.statefulset.name" -) - -// A Kubernetes DaemonSet object. -const ( - // The UID of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetUID = "k8s.daemonset.uid" - // The name of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetName = "k8s.daemonset.name" -) - -// A Kubernetes Job object. -const ( - // The UID of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobUID = "k8s.job.uid" - // The name of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobName = "k8s.job.name" -) - -// A Kubernetes CronJob object. -const ( - // The UID of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobUID = "k8s.cronjob.uid" - // The name of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobName = "k8s.cronjob.name" -) - -// The operating system (OS) on which the process represented by this resource is running. -const ( - // The operating system type. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSType = "os.type" - // Human readable (not intended to be parsed) OS version information, like e.g. - // reported by ver or lsb_release -a commands. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSDescription = "os.description" - // Human readable operating system name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iOS', 'Android', 'Ubuntu' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSName = "os.name" - // The version string of the operating system as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.2.1', '18.04.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSVersion = "os.version" -) - -const ( - // Microsoft Windows - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeWindows = "windows" - // Linux - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeLinux = "linux" - // Apple Darwin - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDarwin = "darwin" - // FreeBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeFreeBSD = "freebsd" - // NetBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeNetBSD = "netbsd" - // OpenBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeOpenBSD = "openbsd" - // DragonFly BSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDragonflyBSD = "dragonflybsd" - // HP-UX (Hewlett Packard Unix) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeHPUX = "hpux" - // AIX (Advanced Interactive eXecutive) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeAIX = "aix" - // Oracle Solaris - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeSolaris = "solaris" - // IBM z/OS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeZOS = "z_os" -) - -// An operating system process. -const ( - // Process identifier (PID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 1234 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessPID = "process.pid" - // The name of the process executable. On Linux based systems, can be set to the - // Name in proc/[pid]/status. On Windows, can be set to the base name of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutableName = "process.executable.name" - // The full path to the process executable. On Linux based systems, can be set to - // the target of proc/[pid]/exe. On Windows, can be set to the result of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: '/usr/bin/cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutablePath = "process.executable.path" - // The command used to launch the process (i.e. the command name). On Linux based - // systems, can be set to the zeroth string in proc/[pid]/cmdline. On Windows, can - // be set to the first parameter extracted from GetCommandLineW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommand = "process.command" - // The full command used to launch the process as a single string representing the - // full command. On Windows, can be set to the result of GetCommandLineW. Do not - // set this if you have to assemble it just for monitoring; use - // process.command_args instead. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandLine = "process.command_line" - // All the command arguments (including the command/executable itself) as received - // by the process. On Linux-based systems (and some other Unixoid systems - // supporting procfs), can be set according to the list of null-delimited strings - // extracted from proc/[pid]/cmdline. For libc-based executables, this would be - // the full argv vector passed to main. - // - // Type: string[] - // Required: See below - // Stability: stable - // Examples: 'cmd/otecol', '--config=config.yaml' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandArgs = "process.command_args" - // The username of the user that owns the process. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'root' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessOwner = "process.owner" -) - -// The single (language) runtime instance which is monitored. -const ( - // The name of the runtime of this process. For compiled native binaries, this - // SHOULD be the name of the compiler. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'OpenJDK Runtime Environment' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeName = "process.runtime.name" - // The version of the runtime of this process, as returned by the runtime without - // modification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.0.2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeVersion = "process.runtime.version" - // An additional description about the runtime of the process, for example a - // specific vendor customization of the runtime environment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeDescription = "process.runtime.description" -) - -// A service instance. -const ( - // Logical name of the service. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'shoppingcart' - // Note: MUST be the same for all instances of horizontally scaled services. If - // the value was not specified, SDKs MUST fallback to unknown_service: - // concatenated with process.executable.name, e.g. unknown_service:bash. If - // process.executable.name is not available, the value MUST be set to - // unknown_service. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceName = "service.name" - // A namespace for service.name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Shop' - // Note: A string value having a meaning that helps to distinguish a group of - // services, for example the team name that owns a group of services. service.name - // is expected to be unique within the same namespace. If service.namespace is not - // specified in the Resource then service.name is expected to be unique for all - // services that have no explicit namespace defined (so the empty/unspecified - // namespace is simply one more valid namespace). Zero-length namespace string is - // assumed equal to unspecified namespace. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceNamespace = "service.namespace" - // The string ID of the service instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '627cc493-f310-47de-96bd-71410b7dec09' - // Note: MUST be unique for each instance of the same - // service.namespace,service.name pair (in other words - // service.namespace,service.name,service.instance.id triplet MUST be globally - // unique). The ID helps to distinguish instances of the same service that exist - // at the same time (e.g. instances of a horizontally scaled service). It is - // preferable for the ID to be persistent and stay the same for the lifetime of - // the service instance, however it is acceptable that the ID is ephemeral and - // changes during important lifetime events for the service (e.g. service - // restarts). If the service has no inherent unique ID that can be used as the - // value of this attribute it is recommended to generate a random Version 1 or - // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use - // Version 5, see RFC 4122 for more recommendations). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceInstanceID = "service.instance.id" - // The version string of the service API or implementation. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceVersion = "service.version" -) - -// The telemetry SDK used to capture data recorded by the instrumentation libraries. -const ( - // The name of the telemetry SDK as defined above. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKName = "telemetry.sdk.name" - // The language of the telemetry SDK. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguage = "telemetry.sdk.language" - // The version string of the telemetry SDK. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKVersion = "telemetry.sdk.version" - // The version string of the auto instrumentation agent, if used. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetryAutoVersion = "telemetry.auto.version" -) - -const ( - // cpp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageCPP = "cpp" - // dotnet - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageDotnet = "dotnet" - // erlang - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageErlang = "erlang" - // go - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageGo = "go" - // java - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageJava = "java" - // nodejs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageNodejs = "nodejs" - // php - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePHP = "php" - // python - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePython = "python" - // ruby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageRuby = "ruby" - // webjs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageWebjs = "webjs" -) - -// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. -const ( - // The name of the web engine. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'WildFly' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineName = "webengine.name" - // The version of the web engine. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '21.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineVersion = "webengine.version" - // Additional description of the web engine (e.g. detailed version and edition - // information). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineDescription = "webengine.description" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetResourceSemanticConventionAttributeNames() []string { - return []string{ - AttributeCloudProvider, - AttributeCloudAccountID, - AttributeCloudRegion, - AttributeCloudAvailabilityZone, - AttributeCloudPlatform, - AttributeAWSECSContainerARN, - AttributeAWSECSClusterARN, - AttributeAWSECSLaunchtype, - AttributeAWSECSTaskARN, - AttributeAWSECSTaskFamily, - AttributeAWSECSTaskRevision, - AttributeAWSEKSClusterARN, - AttributeAWSLogGroupNames, - AttributeAWSLogGroupARNs, - AttributeAWSLogStreamNames, - AttributeAWSLogStreamARNs, - AttributeContainerName, - AttributeContainerID, - AttributeContainerRuntime, - AttributeContainerImageName, - AttributeContainerImageTag, - AttributeDeploymentEnvironment, - AttributeDeviceID, - AttributeDeviceModelIdentifier, - AttributeDeviceModelName, - AttributeFaaSName, - AttributeFaaSID, - AttributeFaaSVersion, - AttributeFaaSInstance, - AttributeFaaSMaxMemory, - AttributeHostID, - AttributeHostName, - AttributeHostType, - AttributeHostArch, - AttributeHostImageName, - AttributeHostImageID, - AttributeHostImageVersion, - AttributeK8SClusterName, - AttributeK8SNodeName, - AttributeK8SNodeUID, - AttributeK8SNamespaceName, - AttributeK8SPodUID, - AttributeK8SPodName, - AttributeK8SContainerName, - AttributeK8SReplicaSetUID, - AttributeK8SReplicaSetName, - AttributeK8SDeploymentUID, - AttributeK8SDeploymentName, - AttributeK8SStatefulSetUID, - AttributeK8SStatefulSetName, - AttributeK8SDaemonSetUID, - AttributeK8SDaemonSetName, - AttributeK8SJobUID, - AttributeK8SJobName, - AttributeK8SCronJobUID, - AttributeK8SCronJobName, - AttributeOSType, - AttributeOSDescription, - AttributeOSName, - AttributeOSVersion, - AttributeProcessPID, - AttributeProcessExecutableName, - AttributeProcessExecutablePath, - AttributeProcessCommand, - AttributeProcessCommandLine, - AttributeProcessCommandArgs, - AttributeProcessOwner, - AttributeProcessRuntimeName, - AttributeProcessRuntimeVersion, - AttributeProcessRuntimeDescription, - AttributeServiceName, - AttributeServiceNamespace, - AttributeServiceInstanceID, - AttributeServiceVersion, - AttributeTelemetrySDKName, - AttributeTelemetrySDKLanguage, - AttributeTelemetrySDKVersion, - AttributeTelemetryAutoVersion, - AttributeWebEngineName, - AttributeWebEngineVersion, - AttributeWebEngineDescription, - } -} diff --git a/model/semconv/v1.5.0/generated_trace.go b/model/semconv/v1.5.0/generated_trace.go deleted file mode 100644 index 0668ec18ef7..00000000000 --- a/model/semconv/v1.5.0/generated_trace.go +++ /dev/null @@ -1,1707 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.5.0" - -// Span attributes used by AWS Lambda (in addition to general `faas` attributes). -const ( - // The full invoked ARN as provided on the Context passed to the function (Lambda- - // Runtime-Invoked-Function-ARN header on the /runtime/invocation/next - // applicable). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' - // Note: This may be different from faas.id if an alias is involved. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" -) - -// This document defines the attributes used to perform database client calls. -const ( - // An identifier for the database management system (DBMS) product being used. See - // below for a list of well-known identifiers. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystem = "db.system" - // The connection string used to connect to the database. It is recommended to - // remove embedded credentials. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBConnectionString = "db.connection_string" - // Username for accessing the database. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'readonly_user', 'reporting_user' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBUser = "db.user" - // The fully-qualified class name of the Java Database Connectivity (JDBC) driver - // used to connect. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'org.postgresql.Driver', - // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" - // If no tech-specific attribute is defined, this attribute is used to report the - // name of the database being accessed. For commands that switch the database, - // this should be set to the target database (even if the command fails). - // - // Type: string - // Required: Required, if applicable and no more-specific attribute is defined. - // Stability: stable - // Examples: 'customers', 'main' - // Note: In some SQL databases, the database name to be used is called - // "schema name". - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBName = "db.name" - // The database statement being executed. - // - // Type: string - // Required: Required if applicable and not explicitly disabled via - // instrumentation configuration. - // Stability: stable - // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' - // Note: The value may be sanitized to exclude sensitive information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBStatement = "db.statement" - // The name of the operation being executed, e.g. the MongoDB command name such as - // findAndModify, or the SQL keyword. - // - // Type: string - // Required: Required, if `db.statement` is not applicable. - // Stability: stable - // Examples: 'findAndModify', 'HMSET', 'SELECT' - // Note: When setting this to an SQL keyword, it is not recommended to attempt any - // client-side parsing of db.statement just to get this property, but it should be - // set if the operation name is provided by the library being instrumented. If the - // SQL statement has an ambiguous operation, or performs more than one operation, - // this value may be omitted. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBOperation = "db.operation" -) - -const ( - // Some other SQL database. Fallback only. See notes - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOtherSQL = "other_sql" - // Microsoft SQL Server - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMSSQL = "mssql" - // MySQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMySQL = "mysql" - // Oracle Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOracle = "oracle" - // IBM DB2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDB2 = "db2" - // PostgreSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPostgreSQL = "postgresql" - // Amazon Redshift - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedshift = "redshift" - // Apache Hive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHive = "hive" - // Cloudscape - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCloudscape = "cloudscape" - // HyperSQL DataBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHSQLDB = "hsqldb" - // Progress Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemProgress = "progress" - // SAP MaxDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMaxDB = "maxdb" - // SAP HANA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHanaDB = "hanadb" - // Ingres - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemIngres = "ingres" - // FirstSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirstSQL = "firstsql" - // EnterpriseDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemEDB = "edb" - // InterSystems Caché - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCache = "cache" - // Adabas (Adaptable Database System) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemAdabas = "adabas" - // Firebird - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirebird = "firebird" - // Apache Derby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDerby = "derby" - // FileMaker - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFilemaker = "filemaker" - // Informix - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInformix = "informix" - // InstantDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInstantDB = "instantdb" - // InterBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInterbase = "interbase" - // MariaDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMariaDB = "mariadb" - // Netezza - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNetezza = "netezza" - // Pervasive PSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPervasive = "pervasive" - // PointBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPointbase = "pointbase" - // SQLite - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSqlite = "sqlite" - // Sybase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSybase = "sybase" - // Teradata - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemTeradata = "teradata" - // Vertica - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemVertica = "vertica" - // H2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemH2 = "h2" - // ColdFusion IMQ - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemColdfusion = "coldfusion" - // Apache Cassandra - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCassandra = "cassandra" - // Apache HBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHBase = "hbase" - // MongoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMongoDB = "mongodb" - // Redis - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedis = "redis" - // Couchbase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchbase = "couchbase" - // CouchDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchDB = "couchdb" - // Microsoft Azure Cosmos DB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCosmosDB = "cosmosdb" - // Amazon DynamoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDynamoDB = "dynamodb" - // Neo4j - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNeo4j = "neo4j" - // Apache Geode - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemGeode = "geode" - // Elasticsearch - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemElasticsearch = "elasticsearch" - // Memcached - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMemcached = "memcached" - // CockroachDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCockroachdb = "cockroachdb" -) - -// Connection-level attributes for Microsoft SQL Server -const ( - // The Microsoft SQL Server instance name connecting to. This name is used to - // determine the port of a named instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MSSQLSERVER' - // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required - // (but still recommended if non-standard). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMSSQLInstanceName = "db.mssql.instance_name" -) - -// Call-level attributes for Cassandra -const ( - // The name of the keyspace being accessed. To be used instead of the generic - // db.name attribute. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'mykeyspace' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraKeyspace = "db.cassandra.keyspace" - // The fetch size used for paging, i.e. how many rows will be returned at once. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5000 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraPageSize = "db.cassandra.page_size" - // The consistency level of the query. Based on consistency values from CQL. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" - // The name of the primary table that the operation is acting upon, including the - // schema name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'mytable' - // Note: This mirrors the db.sql.table attribute but references cassandra rather - // than sql. It is not recommended to attempt any client-side parsing of - // db.statement just to get this property, but it should be set if it is provided - // by the library being instrumented. If the operation is acting upon an anonymous - // table, or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraTable = "db.cassandra.table" - // Whether or not the query is idempotent. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraIdempotence = "db.cassandra.idempotence" - // The number of times a query was speculatively executed. Not set or 0 if the - // query was not executed speculatively. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 0, 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" - // The ID of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" - // The data center of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-west-2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" -) - -const ( - // all - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAll = "all" - // each_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" - // quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelQuorum = "quorum" - // local_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" - // one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelOne = "one" - // two - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelTwo = "two" - // three - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelThree = "three" - // local_one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalOne = "local_one" - // any - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAny = "any" - // serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelSerial = "serial" - // local_serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" -) - -// Call-level attributes for Apache HBase -const ( - // The HBase namespace being accessed. To be used instead of the generic db.name - // attribute. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBHBaseNamespace = "db.hbase.namespace" -) - -// Call-level attributes for Redis -const ( - // The index of the database being accessed as used in the SELECT command, - // provided as an integer. To be used instead of the generic db.name attribute. - // - // Type: int - // Required: Required, if other than the default database (`0`). - // Stability: stable - // Examples: 0, 1, 15 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBRedisDBIndex = "db.redis.database_index" -) - -// Call-level attributes for MongoDB -const ( - // The collection being accessed within the database stated in db.name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'customers', 'products' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMongoDBCollection = "db.mongodb.collection" -) - -// Call-level attrbiutes for SQL databases -const ( - // The name of the primary table that the operation is acting upon, including the - // schema name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'public.users', 'customers' - // Note: It is not recommended to attempt any client-side parsing of db.statement - // just to get this property, but it should be set if it is provided by the - // library being instrumented. If the operation is acting upon an anonymous table, - // or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSQLTable = "db.sql.table" -) - -// This document defines the attributes used to report a single exception associated with a span. -const ( - // The type of the exception (its fully-qualified class name, if applicable). The - // dynamic type of the exception should be preferred over the static type in - // languages that support it. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'java.net.ConnectException', 'OSError' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionType = "exception.type" - // The exception message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionMessage = "exception.message" - // A stacktrace as a string in the natural representation for the language - // runtime. The representation is to be determined and documented by each language - // SIG. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Exception in thread "main" java.lang.RuntimeException: Test - // exception\\n at ' - // 'com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at ' - // 'com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at ' - // 'com.example.GenerateTrace.main(GenerateTrace.java:5)' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionStacktrace = "exception.stacktrace" - // SHOULD be set to true if the exception event is recorded at a point where it is - // known that the exception is escaping the scope of the span. - // - // Type: boolean - // Required: No - // Stability: stable - // Note: An exception is considered to have escaped (or left) the scope of a span, - // if that span is ended while the exception is still logically "in - // flight". - // This may be actually "in flight" in some languages (e.g. if the - // exception - // is passed to a Context manager's __exit__ method in Python) but will - // usually be caught at the point of recording the exception in most languages.It - // is usually not possible to determine at the point where an exception is thrown - // whether it will escape the scope of a span. - // However, it is trivial to know that an exception - // will escape, if one checks for an active exception just before ending the span, - // as done in the example above.It follows that an exception may still escape the - // scope of the span - // even if the exception.escaped attribute was not set or set to false, - // since the event might have been recorded at a time where it was not - // clear whether the exception will escape. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionEscaped = "exception.escaped" -) - -// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. -const ( - // Type of the trigger on which the function is executed. - // - // Type: Enum - // Required: On FaaS instances, faas.trigger MUST be set on incoming invocations. - // Clients invoking FaaS instances MUST set `faas.trigger` on outgoing - // invocations, if it is known to the client. This is, for example, not the case, - // when the transport layer is abstracted in a FaaS client framework without - // access to its configuration. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTrigger = "faas.trigger" - // The execution ID of the current function execution. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSExecution = "faas.execution" -) - -const ( - // A response to some data source operation such as a database or filesystem read/write - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerDatasource = "datasource" - // To provide an answer to an inbound HTTP request - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerHTTP = "http" - // A function is set to be executed when messages are sent to a messaging system - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerPubsub = "pubsub" - // A function is scheduled to be executed regularly - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerTimer = "timer" - // If none of the others apply - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerOther = "other" -) - -// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. -const ( - // The name of the source on which the triggering operation was performed. For - // example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos - // DB to the database name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myBucketName', 'myDBName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentCollection = "faas.document.collection" - // Describes the type of the operation that was performed on the data. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperation = "faas.document.operation" - // A string containing the time when the data was accessed in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentTime = "faas.document.time" - // The document name/table subjected to the operation. For example, in Cloud - // Storage or S3 is the name of the file, and in Cosmos DB the table name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myFile.txt', 'myTableName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentName = "faas.document.name" -) - -const ( - // When a new object is created - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationInsert = "insert" - // When an object is modified - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationEdit = "edit" - // When an object is deleted - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationDelete = "delete" -) - -// Semantic Convention for FaaS scheduled to be executed regularly. -const ( - // A string containing the function invocation time in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTime = "faas.time" - // A string containing the schedule period as Cron Expression. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0/5 * * * ? *' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSCron = "faas.cron" -) - -// Contains additional attributes for incoming FaaS spans. -const ( - // A boolean that is true if the serverless function is executed for the first - // time (aka cold-start). - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSColdstart = "faas.coldstart" -) - -// Contains additional attributes for outgoing FaaS spans. -const ( - // The name of the invoked function. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: SHOULD be equal to the faas.name resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedName = "faas.invoked_name" - // The cloud provider of the invoked function. - // - // Type: Enum - // Required: Always - // Stability: stable - // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProvider = "faas.invoked_provider" - // The cloud region of the invoked function. - // - // Type: string - // Required: For some cloud providers, like AWS or GCP, the region in which a - // function is hosted is essential to uniquely identify the function and also part - // of its endpoint. Since it's part of the endpoint being called, the region is - // always known to clients. In these cases, `faas.invoked_region` MUST be set - // accordingly. If the region is unknown to the client or not required for - // identifying the invoked function, setting `faas.invoked_region` is optional. - // Stability: stable - // Examples: 'eu-central-1' - // Note: SHOULD be equal to the cloud.region resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedRegion = "faas.invoked_region" -) - -const ( - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderGCP = "gcp" -) - -// These attributes may be used for any network related operation. -const ( - // Transport protocol used. See note below. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransport = "net.transport" - // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) - // - // Type: string - // Required: No - // Stability: stable - // Examples: '127.0.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerIP = "net.peer.ip" - // Remote port number. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 80, 8080, 443 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerPort = "net.peer.port" - // Remote hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerName = "net.peer.name" - // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '192.168.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostIP = "net.host.ip" - // Like net.peer.port but for the host port. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 35555 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostPort = "net.host.port" - // Local hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'localhost' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostName = "net.host.name" -) - -const ( - // ip_tcp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportTCP = "ip_tcp" - // ip_udp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUDP = "ip_udp" - // Another IP-based protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportIP = "ip" - // Unix Domain socket. See below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUnix = "unix" - // Named or anonymous pipe. See note below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportPipe = "pipe" - // In-process communication - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportInProc = "inproc" - // Something else (non IP-based) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportOther = "other" -) - -// Operations that access some remote service. -const ( - // The service.name of the remote service. SHOULD be equal to the actual - // service.name resource attribute of the remote service if any. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AuthTokenCache' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributePeerService = "peer.service" -) - -// These attributes may be used for any operation with an authenticated and/or authorized enduser. -const ( - // Username or client_id extracted from the access token or Authorization header - // in the inbound request from outside the system. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'username' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserID = "enduser.id" - // Actual/assumed role the client is making the request under extracted from token - // or application security context. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'admin' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserRole = "enduser.role" - // Scopes or granted authorities the client currently possesses extracted from - // token or application security context. The value would come from the scope - // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 - // Assertion. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'read:message, write:files' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserScope = "enduser.scope" -) - -// These attributes may be used for any operation to store information about a thread that started a span. -const ( - // Current "managed" thread ID (as opposed to OS thread ID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadID = "thread.id" - // Current thread name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'main' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadName = "thread.name" -) - -// These attributes allow to report this unit of code and therefore to provide more context about the span. -const ( - // The method or function name, or equivalent (usually rightmost part of the code - // unit's name). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'serveRequest' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFunction = "code.function" - // The "namespace" within which code.function is defined. Usually the - // qualified class or module name, such that code.namespace + some separator + - // code.function form a unique identifier for the code unit. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'com.example.MyHTTPService' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeNamespace = "code.namespace" - // The source code file name that identifies the code unit as uniquely as possible - // (preferably an absolute file path). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/usr/local/MyApplication/content_root/app/index.php' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFilepath = "code.filepath" - // The line number in code.filepath best representing the operation. It SHOULD - // point within the code unit named in code.function. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeLineNumber = "code.lineno" -) - -// This document defines semantic conventions for HTTP client and server Spans. -const ( - // HTTP request method. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'GET', 'POST', 'HEAD' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPMethod = "http.method" - // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. - // Usually the fragment is not transmitted over HTTP, but if it is known, it - // should be included nevertheless. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' - // Note: http.url MUST NOT contain credentials passed via URL in form of - // https://username:password@www.example.com/. In such case the attribute's value - // should be https://www.example.com/. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPURL = "http.url" - // The full request target as passed in a HTTP request line or equivalent. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/path/12314/?q=ddds#123' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPTarget = "http.target" - // The value of the HTTP host header. When the header is empty or not present, - // this attribute should be the same. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'www.example.org' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPHost = "http.host" - // The URI scheme identifying the used protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'http', 'https' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPScheme = "http.scheme" - // HTTP response status code. - // - // Type: int - // Required: If and only if one was received/sent. - // Stability: stable - // Examples: 200 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPStatusCode = "http.status_code" - // Kind of HTTP protocol used. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: If net.transport is not specified, it can be assumed to be IP.TCP except - // if http.flavor is QUIC, in which case IP.UDP is assumed. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavor = "http.flavor" - // Value of the HTTP User-Agent header sent by the client. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPUserAgent = "http.user_agent" - // The size of the request payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLength = "http.request_content_length" - // The size of the uncompressed request payload body after transport decoding. Not - // set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" - // The size of the response payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLength = "http.response_content_length" - // The size of the uncompressed response payload body after transport decoding. - // Not set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" -) - -const ( - // HTTP 1.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP10 = "1.0" - // HTTP 1.1 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP11 = "1.1" - // HTTP 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP20 = "2.0" - // SPDY protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorSPDY = "SPDY" - // QUIC protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorQUIC = "QUIC" -) - -// Semantic Convention for HTTP Server -const ( - // The primary server name of the matched virtual host. This should be obtained - // via configuration. If no such configuration can be obtained, this attribute - // MUST NOT be set ( net.host.name should be used instead). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Note: http.url is usually not readily available on the server side but would - // have to be assembled in a cumbersome and sometimes lossy process from other - // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus - // preferred to supply the raw data that is available. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPServerName = "http.server_name" - // The matched route (path template). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/users/:userID?' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRoute = "http.route" - // The IP address of the original client behind all proxies, if known (e.g. from - // X-Forwarded-For). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '83.164.160.102' - // Note: This is not necessarily the same as net.peer.ip, which would identify the - // network-level peer, which may be a proxy. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPClientIP = "http.client_ip" -) - -// Attributes that exist for multiple DynamoDB request types. -const ( - // The keys in the RequestItems object field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'Users', 'Cats' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" - // The JSON-serialized value of each item in the ConsumedCapacity response field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { - // "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, - // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": - // "string", "WriteCapacityUnits": number }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" - // The JSON-serialized value of the ItemCollectionMetrics response field. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, - // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : - // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": - // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" - // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" - // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" - // The value of the ConsistentRead request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" - // The value of the ProjectionExpression request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, - // ProductReviews' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" - // The value of the Limit request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" - // The value of the AttributesToGet request parameter. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'lives', 'id' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" - // The value of the IndexName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'name_to_group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" - // The value of the Select request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ALL_ATTRIBUTES', 'COUNT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSelect = "aws.dynamodb.select" -) - -// DynamoDB.CreateTable -const ( - // The JSON-serialized value of each item of the GlobalSecondaryIndexes request - // field - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": - // number, "WriteCapacityUnits": number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" - // The JSON-serialized value of each item of the LocalSecondaryIndexes request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": - // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" -) - -// DynamoDB.ListTables -const ( - // The value of the ExclusiveStartTableName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Users', 'CatsTable' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" - // The the number of items in the TableNames response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 20 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" -) - -// DynamoDB.Query -const ( - // The value of the ScanIndexForward request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" -) - -// DynamoDB.Scan -const ( - // The value of the Segment request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" - // The value of the TotalSegments request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" - // The value of the Count response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBCount = "aws.dynamodb.count" - // The value of the ScannedCount response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 50 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" -) - -// DynamoDB.UpdateTable -const ( - // The JSON-serialized value of each item in the AttributeDefinitions request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" - // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates - // request field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { - // "AttributeName": "string", "KeyType": "string" } ], "Projection": { - // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, - // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" -) - -// This document defines the attributes used in messaging systems. -const ( - // A string identifying the messaging system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingSystem = "messaging.system" - // The message destination name. This might be equal to the span name but is - // required nevertheless. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'MyQueue', 'MyTopic' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestination = "messaging.destination" - // The kind of message destination - // - // Type: Enum - // Required: Required only if the message destination is either a `queue` or - // `topic`. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKind = "messaging.destination_kind" - // A boolean that is true if the message destination is temporary. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingTempDestination = "messaging.temp_destination" - // The name of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AMQP', 'MQTT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocol = "messaging.protocol" - // The version of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.9.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocolVersion = "messaging.protocol_version" - // Connection string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'tibjmsnaming://localhost:7222', - // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingURL = "messaging.url" - // A value used by the messaging system as an identifier for the message, - // represented as a string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '452a7c7c7c7048c2f887f61572b18fc2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessageID = "messaging.message_id" - // The conversation ID identifying the conversation to which the message belongs, - // represented as a string. Sometimes called "Correlation ID". - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MyConversationID' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConversationID = "messaging.conversation_id" - // The (uncompressed) size of the message payload in bytes. Also use this - // attribute if it is unknown whether the compressed or uncompressed payload size - // is reported. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2738 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" - // The compressed size of the message payload in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2048 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" -) - -const ( - // A message sent to a queue - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindQueue = "queue" - // A message sent to a topic - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindTopic = "topic" -) - -// Semantic convention for a consumer of messages received from a messaging system -const ( - // A string identifying the kind of message consumption as defined in the - // Operation names section above. If the operation is "send", this - // attribute MUST NOT be set, since the operation can be inferred from the span - // kind in that case. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperation = "messaging.operation" -) - -const ( - // receive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationReceive = "receive" - // process - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationProcess = "process" -) - -// Attributes for RabbitMQ -const ( - // RabbitMQ message routing key. - // - // Type: string - // Required: Unless it is empty. - // Stability: stable - // Examples: 'myKey' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" -) - -// Attributes for Apache Kafka -const ( - // Message keys in Kafka are used for grouping alike messages to ensure they're - // processed on the same partition. They differ from messaging.message_id in that - // they're not unique. If the key is null, the attribute MUST NOT be set. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myKey' - // Note: If the key type is not string, it's string representation has to be - // supplied for the attribute. If the key has no unambiguous, canonical string - // form, don't include its value. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" - // Name of the Kafka Consumer Group that is handling the message. Only applies to - // consumers, not producers. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'my-group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" - // Client ID for the Consumer or Producer that is handling the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'client-5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaClientID = "messaging.kafka.client_id" - // Partition the message is sent to. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaPartition = "messaging.kafka.partition" - // A boolean that is true if the message is a tombstone. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" -) - -// This document defines semantic conventions for remote procedure calls. -const ( - // A string identifying the remoting system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'grpc', 'java_rmi', 'wcf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCSystem = "rpc.system" - // The full (logical) name of the service being called, including its package - // name, if applicable. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'myservice.EchoService' - // Note: This is the logical name of the service from the RPC interface - // perspective, which can be different from the name of any implementing class. - // The code.namespace attribute may be used to store the latter (despite the - // attribute name, it may include a class name; e.g., class with method actually - // executing the call on the server side, RPC client stub class on the client - // side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCService = "rpc.service" - // The name of the (logical) method being called, must be equal to the $method - // part in the span name. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'exampleMethod' - // Note: This is the logical name of the method from the RPC interface - // perspective, which can be different from the name of any implementing - // method/function. The code.function attribute may be used to store the latter - // (e.g., method actually executing the call on the server side, RPC client stub - // method on the client side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCMethod = "rpc.method" -) - -// Tech-specific attributes for gRPC. -const ( - // The numeric status code of the gRPC request. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" -) - -const ( - // OK - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOk = "0" - // CANCELLED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeCancelled = "1" - // UNKNOWN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnknown = "2" - // INVALID_ARGUMENT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInvalidArgument = "3" - // DEADLINE_EXCEEDED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" - // NOT_FOUND - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeNotFound = "5" - // ALREADY_EXISTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAlreadyExists = "6" - // PERMISSION_DENIED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodePermissionDenied = "7" - // RESOURCE_EXHAUSTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeResourceExhausted = "8" - // FAILED_PRECONDITION - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeFailedPrecondition = "9" - // ABORTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAborted = "10" - // OUT_OF_RANGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOutOfRange = "11" - // UNIMPLEMENTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnimplemented = "12" - // INTERNAL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInternal = "13" - // UNAVAILABLE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnavailable = "14" - // DATA_LOSS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDataLoss = "15" - // UNAUTHENTICATED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnauthenticated = "16" -) - -// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). -const ( - // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 - // does not specify this, the value can be omitted. - // - // Type: string - // Required: If missing, it is assumed to be "1.0". - // Stability: stable - // Examples: '2.0', '1.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" - // id property of request or response. Since protocol allows id to be int, string, - // null or missing (for notifications), value is expected to be cast to string for - // simplicity. Use empty string in case of null value. Omit entirely if this is a - // notification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '10', 'request-7', '' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" - // error.code property of response if it is an error response. - // - // Type: int - // Required: If missing, response is assumed to be successful. - // Stability: stable - // Examples: -32700, 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" - // error.message property of response if it is an error response. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Parse error', 'User already exists' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetTraceSemanticConventionAttributeNames() []string { - return []string{ - AttributeAWSLambdaInvokedARN, - AttributeDBSystem, - AttributeDBConnectionString, - AttributeDBUser, - AttributeDBJDBCDriverClassname, - AttributeDBName, - AttributeDBStatement, - AttributeDBOperation, - AttributeDBMSSQLInstanceName, - AttributeDBCassandraKeyspace, - AttributeDBCassandraPageSize, - AttributeDBCassandraConsistencyLevel, - AttributeDBCassandraTable, - AttributeDBCassandraIdempotence, - AttributeDBCassandraSpeculativeExecutionCount, - AttributeDBCassandraCoordinatorID, - AttributeDBCassandraCoordinatorDC, - AttributeDBHBaseNamespace, - AttributeDBRedisDBIndex, - AttributeDBMongoDBCollection, - AttributeDBSQLTable, - AttributeExceptionType, - AttributeExceptionMessage, - AttributeExceptionStacktrace, - AttributeExceptionEscaped, - AttributeFaaSTrigger, - AttributeFaaSExecution, - AttributeFaaSDocumentCollection, - AttributeFaaSDocumentOperation, - AttributeFaaSDocumentTime, - AttributeFaaSDocumentName, - AttributeFaaSTime, - AttributeFaaSCron, - AttributeFaaSColdstart, - AttributeFaaSInvokedName, - AttributeFaaSInvokedProvider, - AttributeFaaSInvokedRegion, - AttributeNetTransport, - AttributeNetPeerIP, - AttributeNetPeerPort, - AttributeNetPeerName, - AttributeNetHostIP, - AttributeNetHostPort, - AttributeNetHostName, - AttributePeerService, - AttributeEnduserID, - AttributeEnduserRole, - AttributeEnduserScope, - AttributeThreadID, - AttributeThreadName, - AttributeCodeFunction, - AttributeCodeNamespace, - AttributeCodeFilepath, - AttributeCodeLineNumber, - AttributeHTTPMethod, - AttributeHTTPURL, - AttributeHTTPTarget, - AttributeHTTPHost, - AttributeHTTPScheme, - AttributeHTTPStatusCode, - AttributeHTTPFlavor, - AttributeHTTPUserAgent, - AttributeHTTPRequestContentLength, - AttributeHTTPRequestContentLengthUncompressed, - AttributeHTTPResponseContentLength, - AttributeHTTPResponseContentLengthUncompressed, - AttributeHTTPServerName, - AttributeHTTPRoute, - AttributeHTTPClientIP, - AttributeAWSDynamoDBTableNames, - AttributeAWSDynamoDBConsumedCapacity, - AttributeAWSDynamoDBItemCollectionMetrics, - AttributeAWSDynamoDBProvisionedReadCapacity, - AttributeAWSDynamoDBProvisionedWriteCapacity, - AttributeAWSDynamoDBConsistentRead, - AttributeAWSDynamoDBProjection, - AttributeAWSDynamoDBLimit, - AttributeAWSDynamoDBAttributesToGet, - AttributeAWSDynamoDBIndexName, - AttributeAWSDynamoDBSelect, - AttributeAWSDynamoDBGlobalSecondaryIndexes, - AttributeAWSDynamoDBLocalSecondaryIndexes, - AttributeAWSDynamoDBExclusiveStartTable, - AttributeAWSDynamoDBTableCount, - AttributeAWSDynamoDBScanForward, - AttributeAWSDynamoDBSegment, - AttributeAWSDynamoDBTotalSegments, - AttributeAWSDynamoDBCount, - AttributeAWSDynamoDBScannedCount, - AttributeAWSDynamoDBAttributeDefinitions, - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, - AttributeMessagingSystem, - AttributeMessagingDestination, - AttributeMessagingDestinationKind, - AttributeMessagingTempDestination, - AttributeMessagingProtocol, - AttributeMessagingProtocolVersion, - AttributeMessagingURL, - AttributeMessagingMessageID, - AttributeMessagingConversationID, - AttributeMessagingMessagePayloadSizeBytes, - AttributeMessagingMessagePayloadCompressedSizeBytes, - AttributeMessagingOperation, - AttributeMessagingRabbitmqRoutingKey, - AttributeMessagingKafkaMessageKey, - AttributeMessagingKafkaConsumerGroup, - AttributeMessagingKafkaClientID, - AttributeMessagingKafkaPartition, - AttributeMessagingKafkaTombstone, - AttributeRPCSystem, - AttributeRPCService, - AttributeRPCMethod, - AttributeRPCGRPCStatusCode, - AttributeRPCJsonrpcVersion, - AttributeRPCJsonrpcRequestID, - AttributeRPCJsonrpcErrorCode, - AttributeRPCJsonrpcErrorMessage, - } -} diff --git a/model/semconv/v1.5.0/nonstandard.go b/model/semconv/v1.5.0/nonstandard.go deleted file mode 100644 index e6f9aa74d4c..00000000000 --- a/model/semconv/v1.5.0/nonstandard.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.5.0" - -const ( - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - InstrumentationLibraryName = "otel.library.name" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - InstrumentationLibraryVersion = "otel.library.version" -) - -const ( - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusCode = "otel.status_code" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusDescription = "otel.status_description" -) diff --git a/model/semconv/v1.5.0/schema.go b/model/semconv/v1.5.0/schema.go deleted file mode 100644 index dceed00b013..00000000000 --- a/model/semconv/v1.5.0/schema.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.5.0" - -// SchemaURL is the schema URL that matches the version of the semantic conventions -// that this package defines. Conventions packages starting from v1.4.0 must declare -// non-empty schema URL in the form https://opentelemetry.io/schemas/ -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -const SchemaURL = "https://opentelemetry.io/schemas/1.5.0" diff --git a/model/semconv/v1.6.1/generated_resource.go b/model/semconv/v1.6.1/generated_resource.go deleted file mode 100644 index 55665127e04..00000000000 --- a/model/semconv/v1.6.1/generated_resource.go +++ /dev/null @@ -1,1135 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.6.1" - -// A cloud environment (e.g. GCP, Azure, AWS) -const ( - // Name of the cloud provider. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProvider = "cloud.provider" - // The cloud account ID the resource is assigned to. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '111111111111', 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAccountID = "cloud.account.id" - // The geographical region the resource is running. Refer to your provider's docs - // to see the available regions, for example Alibaba Cloud regions, AWS regions, - // Azure regions, or Google Cloud regions. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-central1', 'us-east-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudRegion = "cloud.region" - // Cloud regions often have multiple, isolated locations known as zones to - // increase availability. Availability zone represents the zone where the resource - // is running. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-east-1c' - // Note: Availability zones are called "zones" on Alibaba Cloud and - // Google Cloud. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAvailabilityZone = "cloud.availability_zone" - // The cloud platform in use. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: The prefix of the service SHOULD match the one specified in - // cloud.provider. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatform = "cloud.platform" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderGCP = "gcp" -) - -const ( - // Alibaba Cloud Elastic Compute Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" - // Alibaba Cloud Function Compute - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" - // AWS Elastic Compute Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEC2 = "aws_ec2" - // AWS Elastic Container Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSECS = "aws_ecs" - // AWS Elastic Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEKS = "aws_eks" - // AWS Lambda - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSLambda = "aws_lambda" - // AWS Elastic Beanstalk - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" - // Azure Virtual Machines - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureVM = "azure_vm" - // Azure Container Instances - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" - // Azure Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAKS = "azure_aks" - // Azure Functions - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureFunctions = "azure_functions" - // Azure App Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAppService = "azure_app_service" - // Google Cloud Compute Engine (GCE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" - // Google Cloud Run - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" - // Google Cloud Kubernetes Engine (GKE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" - // Google Cloud Functions (GCF) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" - // Google Cloud App Engine (GAE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" -) - -// Resources used by AWS Elastic Container Service (ECS). -const ( - // The Amazon Resource Name (ARN) of an ECS container instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSContainerARN = "aws.ecs.container.arn" - // The ARN of an ECS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" - // The launch type for an ECS task. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtype = "aws.ecs.launchtype" - // The ARN of an ECS task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskARN = "aws.ecs.task.arn" - // The task definition family this task definition is a member of. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-family' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskFamily = "aws.ecs.task.family" - // The revision for this task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '8', '26' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskRevision = "aws.ecs.task.revision" -) - -const ( - // ec2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeEC2 = "ec2" - // fargate - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeFargate = "fargate" -) - -// Resources used by AWS Elastic Kubernetes Service (EKS). -const ( - // The ARN of an EKS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" -) - -// Resources specific to Amazon Web Services. -const ( - // The name(s) of the AWS log group(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '/aws/lambda/my-function', 'opentelemetry-service' - // Note: Multiple log groups must be supported for cases like multi-container - // applications, where a single application has sidecar containers, and each write - // to their own log group. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupNames = "aws.log.group.names" - // The Amazon Resource Name(s) (ARN) of the AWS log group(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' - // Note: See the log group ARN format documentation. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupARNs = "aws.log.group.arns" - // The name(s) of the AWS log stream(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamNames = "aws.log.stream.names" - // The ARN(s) of the AWS log stream(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log- - // stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Note: See the log stream ARN format documentation. One log group can contain - // several log streams, so these ARNs necessarily identify both a log group and a - // log stream. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamARNs = "aws.log.stream.arns" -) - -// A container instance. -const ( - // Container name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerName = "container.name" - // Container ID. Usually a UUID, as for example used to identify Docker - // containers. The UUID might be abbreviated. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'a3bf90e006b2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerID = "container.id" - // The container runtime managing this container. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'docker', 'containerd', 'rkt' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerRuntime = "container.runtime" - // Name of the image the container was built on. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'gcr.io/opentelemetry/operator' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageName = "container.image.name" - // Container image tag. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageTag = "container.image.tag" -) - -// The software deployment. -const ( - // Name of the deployment environment (aka deployment tier). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'staging', 'production' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeploymentEnvironment = "deployment.environment" -) - -// The device on which the process represented by this resource is running. -const ( - // A unique identifier representing the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2ab2916d-a51f-4ac8-80ee-45ac31a28092' - // Note: The device identifier MUST only be defined using the values outlined - // below. This value is not an advertising identifier and MUST NOT be used as - // such. On iOS (Swift or Objective-C), this value MUST be equal to the vendor - // identifier. On Android (Java or Kotlin), this value MUST be equal to the - // Firebase Installation ID or a globally unique UUID which is persisted across - // sessions in your application. More information can be found here on best - // practices and exact implementation details. Caution should be taken when - // storing personal data or anything which can identify a user. GDPR and data - // protection laws may apply, ensure you do your own due diligence. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceID = "device.id" - // The model identifier for the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone3,4', 'SM-G920F' - // Note: It's recommended this value represents a machine readable version of the - // model identifier rather than the market or consumer-friendly name of the - // device. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelIdentifier = "device.model.identifier" - // The marketing name for the device model - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone 6s Plus', 'Samsung Galaxy S6' - // Note: It's recommended this value represents a human readable version of the - // device model rather than a machine readable alternative. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelName = "device.model.name" -) - -// A serverless instance. -const ( - // The name of the single function that this runtime instance executes. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: This is the name of the function as configured/deployed on the FaaS - // platform and is usually different from the name of the callback function (which - // may be stored in the code.namespace/code.function span attributes). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSName = "faas.name" - // The unique ID of the single function that this runtime instance executes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' - // Note: Depending on the cloud provider, use:
    - //
  • AWS Lambda: The function ARN.
  • - //
- // Take care not to use the "invoked ARN" directly but replace any - // alias suffix with the resolved function version, as the same runtime instance - // may be invokable with multiple - // different aliases.
    - //
  • GCP: The URI of the resource
  • - //
  • Azure: The Fully Qualified Resource ID.
  • - //
- // On some providers, it may not be possible to determine the full ID at startup, - // which is why this field cannot be made required. For example, on AWS the - // account ID - // part of the ARN is not available without calling another AWS API - // which may be deemed too slow for a short-running lambda function. - // As an alternative, consider setting faas.id as a span attribute instead. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSID = "faas.id" - // The immutable version of the function being executed. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '26', 'pinkfroid-00002' - // Note: Depending on the cloud provider and platform, use:
    - //
  • AWS Lambda: The function version - // (an integer represented as a decimal string).
  • - //
  • Google Cloud Run: The revision - // (i.e., the function name plus the revision suffix).
  • - //
  • Google Cloud Functions: The value of the - // K_REVISION environment variable.
  • - //
  • Azure Functions: Not applicable. Do not set this attribute.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSVersion = "faas.version" - // The execution environment ID as a string, that will be potentially reused for - // other invocations to the same function/function version. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' - // Note:
    - //
  • AWS Lambda: Use the (full) log stream name.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInstance = "faas.instance" - // The amount of memory available to the serverless function in MiB. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 128 - // Note: It's recommended to set this attribute since e.g. too little memory can - // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, - // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this - // information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSMaxMemory = "faas.max_memory" -) - -// A host is defined as a general computing instance. -const ( - // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud - // provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostID = "host.id" - // Name of the host. On Unix systems, it may contain what the hostname command - // returns, or the fully qualified hostname, or another name specified by the - // user. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostName = "host.name" - // Type of host. For Cloud, this must be the machine type. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'n1-standard-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostType = "host.type" - // The CPU architecture the host system is running on. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArch = "host.arch" - // Name of the VM image or OS install the host was instantiated from. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageName = "host.image.name" - // VM image ID. For Cloud, this value is from the provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ami-07b06b442921831e5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageID = "host.image.id" - // The version string of the VM image as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageVersion = "host.image.version" -) - -const ( - // AMD64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchAMD64 = "amd64" - // ARM32 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM32 = "arm32" - // ARM64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM64 = "arm64" - // Itanium - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchIA64 = "ia64" - // 32-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC32 = "ppc32" - // 64-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC64 = "ppc64" - // 32-bit x86 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchX86 = "x86" -) - -// A Kubernetes Cluster. -const ( - // The name of the cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SClusterName = "k8s.cluster.name" -) - -// A Kubernetes Node object. -const ( - // The name of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'node-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeName = "k8s.node.name" - // The UID of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeUID = "k8s.node.uid" -) - -// A Kubernetes Namespace. -const ( - // The name of the namespace that the pod is running in. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNamespaceName = "k8s.namespace.name" -) - -// A Kubernetes Pod object. -const ( - // The UID of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodUID = "k8s.pod.uid" - // The name of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-pod-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodName = "k8s.pod.name" -) - -// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). -const ( - // The name of the Container in a Pod template. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'redis' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SContainerName = "k8s.container.name" -) - -// A Kubernetes ReplicaSet object. -const ( - // The UID of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetUID = "k8s.replicaset.uid" - // The name of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetName = "k8s.replicaset.name" -) - -// A Kubernetes Deployment object. -const ( - // The UID of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentUID = "k8s.deployment.uid" - // The name of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentName = "k8s.deployment.name" -) - -// A Kubernetes StatefulSet object. -const ( - // The UID of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetUID = "k8s.statefulset.uid" - // The name of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetName = "k8s.statefulset.name" -) - -// A Kubernetes DaemonSet object. -const ( - // The UID of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetUID = "k8s.daemonset.uid" - // The name of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetName = "k8s.daemonset.name" -) - -// A Kubernetes Job object. -const ( - // The UID of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobUID = "k8s.job.uid" - // The name of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobName = "k8s.job.name" -) - -// A Kubernetes CronJob object. -const ( - // The UID of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobUID = "k8s.cronjob.uid" - // The name of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobName = "k8s.cronjob.name" -) - -// The operating system (OS) on which the process represented by this resource is running. -const ( - // The operating system type. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSType = "os.type" - // Human readable (not intended to be parsed) OS version information, like e.g. - // reported by ver or lsb_release -a commands. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSDescription = "os.description" - // Human readable operating system name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iOS', 'Android', 'Ubuntu' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSName = "os.name" - // The version string of the operating system as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.2.1', '18.04.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSVersion = "os.version" -) - -const ( - // Microsoft Windows - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeWindows = "windows" - // Linux - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeLinux = "linux" - // Apple Darwin - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDarwin = "darwin" - // FreeBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeFreeBSD = "freebsd" - // NetBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeNetBSD = "netbsd" - // OpenBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeOpenBSD = "openbsd" - // DragonFly BSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDragonflyBSD = "dragonflybsd" - // HP-UX (Hewlett Packard Unix) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeHPUX = "hpux" - // AIX (Advanced Interactive eXecutive) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeAIX = "aix" - // Oracle Solaris - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeSolaris = "solaris" - // IBM z/OS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeZOS = "z_os" -) - -// An operating system process. -const ( - // Process identifier (PID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 1234 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessPID = "process.pid" - // The name of the process executable. On Linux based systems, can be set to the - // Name in proc/[pid]/status. On Windows, can be set to the base name of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutableName = "process.executable.name" - // The full path to the process executable. On Linux based systems, can be set to - // the target of proc/[pid]/exe. On Windows, can be set to the result of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: '/usr/bin/cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutablePath = "process.executable.path" - // The command used to launch the process (i.e. the command name). On Linux based - // systems, can be set to the zeroth string in proc/[pid]/cmdline. On Windows, can - // be set to the first parameter extracted from GetCommandLineW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommand = "process.command" - // The full command used to launch the process as a single string representing the - // full command. On Windows, can be set to the result of GetCommandLineW. Do not - // set this if you have to assemble it just for monitoring; use - // process.command_args instead. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandLine = "process.command_line" - // All the command arguments (including the command/executable itself) as received - // by the process. On Linux-based systems (and some other Unixoid systems - // supporting procfs), can be set according to the list of null-delimited strings - // extracted from proc/[pid]/cmdline. For libc-based executables, this would be - // the full argv vector passed to main. - // - // Type: string[] - // Required: See below - // Stability: stable - // Examples: 'cmd/otecol', '--config=config.yaml' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandArgs = "process.command_args" - // The username of the user that owns the process. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'root' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessOwner = "process.owner" -) - -// The single (language) runtime instance which is monitored. -const ( - // The name of the runtime of this process. For compiled native binaries, this - // SHOULD be the name of the compiler. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'OpenJDK Runtime Environment' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeName = "process.runtime.name" - // The version of the runtime of this process, as returned by the runtime without - // modification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.0.2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeVersion = "process.runtime.version" - // An additional description about the runtime of the process, for example a - // specific vendor customization of the runtime environment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeDescription = "process.runtime.description" -) - -// A service instance. -const ( - // Logical name of the service. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'shoppingcart' - // Note: MUST be the same for all instances of horizontally scaled services. If - // the value was not specified, SDKs MUST fallback to unknown_service: - // concatenated with process.executable.name, e.g. unknown_service:bash. If - // process.executable.name is not available, the value MUST be set to - // unknown_service. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceName = "service.name" - // A namespace for service.name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Shop' - // Note: A string value having a meaning that helps to distinguish a group of - // services, for example the team name that owns a group of services. service.name - // is expected to be unique within the same namespace. If service.namespace is not - // specified in the Resource then service.name is expected to be unique for all - // services that have no explicit namespace defined (so the empty/unspecified - // namespace is simply one more valid namespace). Zero-length namespace string is - // assumed equal to unspecified namespace. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceNamespace = "service.namespace" - // The string ID of the service instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '627cc493-f310-47de-96bd-71410b7dec09' - // Note: MUST be unique for each instance of the same - // service.namespace,service.name pair (in other words - // service.namespace,service.name,service.instance.id triplet MUST be globally - // unique). The ID helps to distinguish instances of the same service that exist - // at the same time (e.g. instances of a horizontally scaled service). It is - // preferable for the ID to be persistent and stay the same for the lifetime of - // the service instance, however it is acceptable that the ID is ephemeral and - // changes during important lifetime events for the service (e.g. service - // restarts). If the service has no inherent unique ID that can be used as the - // value of this attribute it is recommended to generate a random Version 1 or - // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use - // Version 5, see RFC 4122 for more recommendations). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceInstanceID = "service.instance.id" - // The version string of the service API or implementation. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceVersion = "service.version" -) - -// The telemetry SDK used to capture data recorded by the instrumentation libraries. -const ( - // The name of the telemetry SDK as defined above. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKName = "telemetry.sdk.name" - // The language of the telemetry SDK. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguage = "telemetry.sdk.language" - // The version string of the telemetry SDK. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKVersion = "telemetry.sdk.version" - // The version string of the auto instrumentation agent, if used. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetryAutoVersion = "telemetry.auto.version" -) - -const ( - // cpp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageCPP = "cpp" - // dotnet - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageDotnet = "dotnet" - // erlang - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageErlang = "erlang" - // go - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageGo = "go" - // java - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageJava = "java" - // nodejs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageNodejs = "nodejs" - // php - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePHP = "php" - // python - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePython = "python" - // ruby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageRuby = "ruby" - // webjs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageWebjs = "webjs" -) - -// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. -const ( - // The name of the web engine. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'WildFly' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineName = "webengine.name" - // The version of the web engine. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '21.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineVersion = "webengine.version" - // Additional description of the web engine (e.g. detailed version and edition - // information). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineDescription = "webengine.description" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetResourceSemanticConventionAttributeNames() []string { - return []string{ - AttributeCloudProvider, - AttributeCloudAccountID, - AttributeCloudRegion, - AttributeCloudAvailabilityZone, - AttributeCloudPlatform, - AttributeAWSECSContainerARN, - AttributeAWSECSClusterARN, - AttributeAWSECSLaunchtype, - AttributeAWSECSTaskARN, - AttributeAWSECSTaskFamily, - AttributeAWSECSTaskRevision, - AttributeAWSEKSClusterARN, - AttributeAWSLogGroupNames, - AttributeAWSLogGroupARNs, - AttributeAWSLogStreamNames, - AttributeAWSLogStreamARNs, - AttributeContainerName, - AttributeContainerID, - AttributeContainerRuntime, - AttributeContainerImageName, - AttributeContainerImageTag, - AttributeDeploymentEnvironment, - AttributeDeviceID, - AttributeDeviceModelIdentifier, - AttributeDeviceModelName, - AttributeFaaSName, - AttributeFaaSID, - AttributeFaaSVersion, - AttributeFaaSInstance, - AttributeFaaSMaxMemory, - AttributeHostID, - AttributeHostName, - AttributeHostType, - AttributeHostArch, - AttributeHostImageName, - AttributeHostImageID, - AttributeHostImageVersion, - AttributeK8SClusterName, - AttributeK8SNodeName, - AttributeK8SNodeUID, - AttributeK8SNamespaceName, - AttributeK8SPodUID, - AttributeK8SPodName, - AttributeK8SContainerName, - AttributeK8SReplicaSetUID, - AttributeK8SReplicaSetName, - AttributeK8SDeploymentUID, - AttributeK8SDeploymentName, - AttributeK8SStatefulSetUID, - AttributeK8SStatefulSetName, - AttributeK8SDaemonSetUID, - AttributeK8SDaemonSetName, - AttributeK8SJobUID, - AttributeK8SJobName, - AttributeK8SCronJobUID, - AttributeK8SCronJobName, - AttributeOSType, - AttributeOSDescription, - AttributeOSName, - AttributeOSVersion, - AttributeProcessPID, - AttributeProcessExecutableName, - AttributeProcessExecutablePath, - AttributeProcessCommand, - AttributeProcessCommandLine, - AttributeProcessCommandArgs, - AttributeProcessOwner, - AttributeProcessRuntimeName, - AttributeProcessRuntimeVersion, - AttributeProcessRuntimeDescription, - AttributeServiceName, - AttributeServiceNamespace, - AttributeServiceInstanceID, - AttributeServiceVersion, - AttributeTelemetrySDKName, - AttributeTelemetrySDKLanguage, - AttributeTelemetrySDKVersion, - AttributeTelemetryAutoVersion, - AttributeWebEngineName, - AttributeWebEngineVersion, - AttributeWebEngineDescription, - } -} diff --git a/model/semconv/v1.6.1/generated_trace.go b/model/semconv/v1.6.1/generated_trace.go deleted file mode 100644 index 3453369b72c..00000000000 --- a/model/semconv/v1.6.1/generated_trace.go +++ /dev/null @@ -1,1851 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.6.1" - -// Span attributes used by AWS Lambda (in addition to general `faas` attributes). -const ( - // The full invoked ARN as provided on the Context passed to the function (Lambda- - // Runtime-Invoked-Function-ARN header on the /runtime/invocation/next - // applicable). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' - // Note: This may be different from faas.id if an alias is involved. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" -) - -// This document defines the attributes used to perform database client calls. -const ( - // An identifier for the database management system (DBMS) product being used. See - // below for a list of well-known identifiers. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystem = "db.system" - // The connection string used to connect to the database. It is recommended to - // remove embedded credentials. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBConnectionString = "db.connection_string" - // Username for accessing the database. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'readonly_user', 'reporting_user' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBUser = "db.user" - // The fully-qualified class name of the Java Database Connectivity (JDBC) driver - // used to connect. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'org.postgresql.Driver', - // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" - // If no tech-specific attribute is defined, this attribute is used to report the - // name of the database being accessed. For commands that switch the database, - // this should be set to the target database (even if the command fails). - // - // Type: string - // Required: Required, if applicable and no more-specific attribute is defined. - // Stability: stable - // Examples: 'customers', 'main' - // Note: In some SQL databases, the database name to be used is called - // "schema name". - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBName = "db.name" - // The database statement being executed. - // - // Type: string - // Required: Required if applicable and not explicitly disabled via - // instrumentation configuration. - // Stability: stable - // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' - // Note: The value may be sanitized to exclude sensitive information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBStatement = "db.statement" - // The name of the operation being executed, e.g. the MongoDB command name such as - // findAndModify, or the SQL keyword. - // - // Type: string - // Required: Required, if `db.statement` is not applicable. - // Stability: stable - // Examples: 'findAndModify', 'HMSET', 'SELECT' - // Note: When setting this to an SQL keyword, it is not recommended to attempt any - // client-side parsing of db.statement just to get this property, but it should be - // set if the operation name is provided by the library being instrumented. If the - // SQL statement has an ambiguous operation, or performs more than one operation, - // this value may be omitted. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBOperation = "db.operation" -) - -const ( - // Some other SQL database. Fallback only. See notes - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOtherSQL = "other_sql" - // Microsoft SQL Server - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMSSQL = "mssql" - // MySQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMySQL = "mysql" - // Oracle Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOracle = "oracle" - // IBM DB2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDB2 = "db2" - // PostgreSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPostgreSQL = "postgresql" - // Amazon Redshift - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedshift = "redshift" - // Apache Hive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHive = "hive" - // Cloudscape - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCloudscape = "cloudscape" - // HyperSQL DataBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHSQLDB = "hsqldb" - // Progress Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemProgress = "progress" - // SAP MaxDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMaxDB = "maxdb" - // SAP HANA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHanaDB = "hanadb" - // Ingres - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemIngres = "ingres" - // FirstSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirstSQL = "firstsql" - // EnterpriseDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemEDB = "edb" - // InterSystems Caché - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCache = "cache" - // Adabas (Adaptable Database System) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemAdabas = "adabas" - // Firebird - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirebird = "firebird" - // Apache Derby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDerby = "derby" - // FileMaker - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFilemaker = "filemaker" - // Informix - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInformix = "informix" - // InstantDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInstantDB = "instantdb" - // InterBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInterbase = "interbase" - // MariaDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMariaDB = "mariadb" - // Netezza - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNetezza = "netezza" - // Pervasive PSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPervasive = "pervasive" - // PointBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPointbase = "pointbase" - // SQLite - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSqlite = "sqlite" - // Sybase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSybase = "sybase" - // Teradata - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemTeradata = "teradata" - // Vertica - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemVertica = "vertica" - // H2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemH2 = "h2" - // ColdFusion IMQ - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemColdfusion = "coldfusion" - // Apache Cassandra - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCassandra = "cassandra" - // Apache HBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHBase = "hbase" - // MongoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMongoDB = "mongodb" - // Redis - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedis = "redis" - // Couchbase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchbase = "couchbase" - // CouchDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchDB = "couchdb" - // Microsoft Azure Cosmos DB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCosmosDB = "cosmosdb" - // Amazon DynamoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDynamoDB = "dynamodb" - // Neo4j - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNeo4j = "neo4j" - // Apache Geode - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemGeode = "geode" - // Elasticsearch - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemElasticsearch = "elasticsearch" - // Memcached - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMemcached = "memcached" - // CockroachDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCockroachdb = "cockroachdb" -) - -// Connection-level attributes for Microsoft SQL Server -const ( - // The Microsoft SQL Server instance name connecting to. This name is used to - // determine the port of a named instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MSSQLSERVER' - // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required - // (but still recommended if non-standard). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMSSQLInstanceName = "db.mssql.instance_name" -) - -// Call-level attributes for Cassandra -const ( - // The name of the keyspace being accessed. To be used instead of the generic - // db.name attribute. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'mykeyspace' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraKeyspace = "db.cassandra.keyspace" - // The fetch size used for paging, i.e. how many rows will be returned at once. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5000 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraPageSize = "db.cassandra.page_size" - // The consistency level of the query. Based on consistency values from CQL. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" - // The name of the primary table that the operation is acting upon, including the - // schema name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'mytable' - // Note: This mirrors the db.sql.table attribute but references cassandra rather - // than sql. It is not recommended to attempt any client-side parsing of - // db.statement just to get this property, but it should be set if it is provided - // by the library being instrumented. If the operation is acting upon an anonymous - // table, or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraTable = "db.cassandra.table" - // Whether or not the query is idempotent. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraIdempotence = "db.cassandra.idempotence" - // The number of times a query was speculatively executed. Not set or 0 if the - // query was not executed speculatively. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 0, 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" - // The ID of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" - // The data center of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-west-2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" -) - -const ( - // all - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAll = "all" - // each_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" - // quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelQuorum = "quorum" - // local_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" - // one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelOne = "one" - // two - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelTwo = "two" - // three - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelThree = "three" - // local_one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalOne = "local_one" - // any - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAny = "any" - // serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelSerial = "serial" - // local_serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" -) - -// Call-level attributes for Apache HBase -const ( - // The HBase namespace being accessed. To be used instead of the generic db.name - // attribute. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBHBaseNamespace = "db.hbase.namespace" -) - -// Call-level attributes for Redis -const ( - // The index of the database being accessed as used in the SELECT command, - // provided as an integer. To be used instead of the generic db.name attribute. - // - // Type: int - // Required: Required, if other than the default database (`0`). - // Stability: stable - // Examples: 0, 1, 15 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBRedisDBIndex = "db.redis.database_index" -) - -// Call-level attributes for MongoDB -const ( - // The collection being accessed within the database stated in db.name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'customers', 'products' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMongoDBCollection = "db.mongodb.collection" -) - -// Call-level attrbiutes for SQL databases -const ( - // The name of the primary table that the operation is acting upon, including the - // schema name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'public.users', 'customers' - // Note: It is not recommended to attempt any client-side parsing of db.statement - // just to get this property, but it should be set if it is provided by the - // library being instrumented. If the operation is acting upon an anonymous table, - // or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSQLTable = "db.sql.table" -) - -// This document defines the attributes used to report a single exception associated with a span. -const ( - // The type of the exception (its fully-qualified class name, if applicable). The - // dynamic type of the exception should be preferred over the static type in - // languages that support it. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'java.net.ConnectException', 'OSError' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionType = "exception.type" - // The exception message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionMessage = "exception.message" - // A stacktrace as a string in the natural representation for the language - // runtime. The representation is to be determined and documented by each language - // SIG. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Exception in thread "main" java.lang.RuntimeException: Test - // exception\\n at ' - // 'com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at ' - // 'com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at ' - // 'com.example.GenerateTrace.main(GenerateTrace.java:5)' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionStacktrace = "exception.stacktrace" - // SHOULD be set to true if the exception event is recorded at a point where it is - // known that the exception is escaping the scope of the span. - // - // Type: boolean - // Required: No - // Stability: stable - // Note: An exception is considered to have escaped (or left) the scope of a span, - // if that span is ended while the exception is still logically "in - // flight". - // This may be actually "in flight" in some languages (e.g. if the - // exception - // is passed to a Context manager's __exit__ method in Python) but will - // usually be caught at the point of recording the exception in most languages.It - // is usually not possible to determine at the point where an exception is thrown - // whether it will escape the scope of a span. - // However, it is trivial to know that an exception - // will escape, if one checks for an active exception just before ending the span, - // as done in the example above.It follows that an exception may still escape the - // scope of the span - // even if the exception.escaped attribute was not set or set to false, - // since the event might have been recorded at a time where it was not - // clear whether the exception will escape. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionEscaped = "exception.escaped" -) - -// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. -const ( - // Type of the trigger on which the function is executed. - // - // Type: Enum - // Required: On FaaS instances, faas.trigger MUST be set on incoming invocations. - // Clients invoking FaaS instances MUST set `faas.trigger` on outgoing - // invocations, if it is known to the client. This is, for example, not the case, - // when the transport layer is abstracted in a FaaS client framework without - // access to its configuration. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTrigger = "faas.trigger" - // The execution ID of the current function execution. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSExecution = "faas.execution" -) - -const ( - // A response to some data source operation such as a database or filesystem read/write - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerDatasource = "datasource" - // To provide an answer to an inbound HTTP request - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerHTTP = "http" - // A function is set to be executed when messages are sent to a messaging system - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerPubsub = "pubsub" - // A function is scheduled to be executed regularly - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerTimer = "timer" - // If none of the others apply - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerOther = "other" -) - -// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. -const ( - // The name of the source on which the triggering operation was performed. For - // example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos - // DB to the database name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myBucketName', 'myDBName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentCollection = "faas.document.collection" - // Describes the type of the operation that was performed on the data. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperation = "faas.document.operation" - // A string containing the time when the data was accessed in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentTime = "faas.document.time" - // The document name/table subjected to the operation. For example, in Cloud - // Storage or S3 is the name of the file, and in Cosmos DB the table name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myFile.txt', 'myTableName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentName = "faas.document.name" -) - -const ( - // When a new object is created - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationInsert = "insert" - // When an object is modified - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationEdit = "edit" - // When an object is deleted - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationDelete = "delete" -) - -// Semantic Convention for FaaS scheduled to be executed regularly. -const ( - // A string containing the function invocation time in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTime = "faas.time" - // A string containing the schedule period as Cron Expression. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0/5 * * * ? *' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSCron = "faas.cron" -) - -// Contains additional attributes for incoming FaaS spans. -const ( - // A boolean that is true if the serverless function is executed for the first - // time (aka cold-start). - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSColdstart = "faas.coldstart" -) - -// Contains additional attributes for outgoing FaaS spans. -const ( - // The name of the invoked function. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: SHOULD be equal to the faas.name resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedName = "faas.invoked_name" - // The cloud provider of the invoked function. - // - // Type: Enum - // Required: Always - // Stability: stable - // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProvider = "faas.invoked_provider" - // The cloud region of the invoked function. - // - // Type: string - // Required: For some cloud providers, like AWS or GCP, the region in which a - // function is hosted is essential to uniquely identify the function and also part - // of its endpoint. Since it's part of the endpoint being called, the region is - // always known to clients. In these cases, `faas.invoked_region` MUST be set - // accordingly. If the region is unknown to the client or not required for - // identifying the invoked function, setting `faas.invoked_region` is optional. - // Stability: stable - // Examples: 'eu-central-1' - // Note: SHOULD be equal to the cloud.region resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedRegion = "faas.invoked_region" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderGCP = "gcp" -) - -// These attributes may be used for any network related operation. -const ( - // Transport protocol used. See note below. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransport = "net.transport" - // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) - // - // Type: string - // Required: No - // Stability: stable - // Examples: '127.0.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerIP = "net.peer.ip" - // Remote port number. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 80, 8080, 443 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerPort = "net.peer.port" - // Remote hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerName = "net.peer.name" - // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '192.168.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostIP = "net.host.ip" - // Like net.peer.port but for the host port. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 35555 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostPort = "net.host.port" - // Local hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'localhost' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostName = "net.host.name" - // The internet connection type currently being used by the host. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'wifi' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionType = "net.host.connection.type" - // This describes more details regarding the connection.type. It may be the type - // of cell technology connection, but it could be used for describing details - // about a wifi connection. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'LTE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtype = "net.host.connection.subtype" - // The name of the mobile carrier. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'sprint' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierName = "net.host.carrier.name" - // The mobile carrier country code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '310' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMcc = "net.host.carrier.mcc" - // The mobile carrier network code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '001' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMnc = "net.host.carrier.mnc" - // The ISO 3166-1 alpha-2 2-character country code associated with the mobile - // carrier network. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'DE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierIcc = "net.host.carrier.icc" -) - -const ( - // ip_tcp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportTCP = "ip_tcp" - // ip_udp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUDP = "ip_udp" - // Another IP-based protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportIP = "ip" - // Unix Domain socket. See below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUnix = "unix" - // Named or anonymous pipe. See note below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportPipe = "pipe" - // In-process communication - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportInProc = "inproc" - // Something else (non IP-based) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportOther = "other" -) - -const ( - // wifi - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWifi = "wifi" - // wired - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWired = "wired" - // cell - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeCell = "cell" - // unavailable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnavailable = "unavailable" - // unknown - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnknown = "unknown" -) - -const ( - // GPRS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGprs = "gprs" - // EDGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEdge = "edge" - // UMTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeUmts = "umts" - // CDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma = "cdma" - // EVDO Rel. 0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" - // EVDO Rev. A - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" - // CDMA2000 1XRTT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" - // HSDPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" - // HSUPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsupa = "hsupa" - // HSPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspa = "hspa" - // IDEN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIden = "iden" - // EVDO Rev. B - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" - // LTE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLte = "lte" - // EHRPD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" - // HSPAP - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspap = "hspap" - // GSM - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGsm = "gsm" - // TD-SCDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" - // IWLAN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIwlan = "iwlan" - // 5G NR (New Radio) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNr = "nr" - // 5G NRNSA (New Radio Non-Standalone) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" - // LTE CA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLteCa = "lte_ca" -) - -// Operations that access some remote service. -const ( - // The service.name of the remote service. SHOULD be equal to the actual - // service.name resource attribute of the remote service if any. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AuthTokenCache' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributePeerService = "peer.service" -) - -// These attributes may be used for any operation with an authenticated and/or authorized enduser. -const ( - // Username or client_id extracted from the access token or Authorization header - // in the inbound request from outside the system. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'username' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserID = "enduser.id" - // Actual/assumed role the client is making the request under extracted from token - // or application security context. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'admin' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserRole = "enduser.role" - // Scopes or granted authorities the client currently possesses extracted from - // token or application security context. The value would come from the scope - // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 - // Assertion. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'read:message, write:files' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserScope = "enduser.scope" -) - -// These attributes may be used for any operation to store information about a thread that started a span. -const ( - // Current "managed" thread ID (as opposed to OS thread ID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadID = "thread.id" - // Current thread name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'main' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadName = "thread.name" -) - -// These attributes allow to report this unit of code and therefore to provide more context about the span. -const ( - // The method or function name, or equivalent (usually rightmost part of the code - // unit's name). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'serveRequest' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFunction = "code.function" - // The "namespace" within which code.function is defined. Usually the - // qualified class or module name, such that code.namespace + some separator + - // code.function form a unique identifier for the code unit. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'com.example.MyHTTPService' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeNamespace = "code.namespace" - // The source code file name that identifies the code unit as uniquely as possible - // (preferably an absolute file path). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/usr/local/MyApplication/content_root/app/index.php' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFilepath = "code.filepath" - // The line number in code.filepath best representing the operation. It SHOULD - // point within the code unit named in code.function. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeLineNumber = "code.lineno" -) - -// This document defines semantic conventions for HTTP client and server Spans. -const ( - // HTTP request method. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'GET', 'POST', 'HEAD' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPMethod = "http.method" - // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. - // Usually the fragment is not transmitted over HTTP, but if it is known, it - // should be included nevertheless. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' - // Note: http.url MUST NOT contain credentials passed via URL in form of - // https://username:password@www.example.com/. In such case the attribute's value - // should be https://www.example.com/. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPURL = "http.url" - // The full request target as passed in a HTTP request line or equivalent. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/path/12314/?q=ddds#123' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPTarget = "http.target" - // The value of the HTTP host header. When the header is empty or not present, - // this attribute should be the same. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'www.example.org' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPHost = "http.host" - // The URI scheme identifying the used protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'http', 'https' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPScheme = "http.scheme" - // HTTP response status code. - // - // Type: int - // Required: If and only if one was received/sent. - // Stability: stable - // Examples: 200 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPStatusCode = "http.status_code" - // Kind of HTTP protocol used. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: If net.transport is not specified, it can be assumed to be IP.TCP except - // if http.flavor is QUIC, in which case IP.UDP is assumed. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavor = "http.flavor" - // Value of the HTTP User-Agent header sent by the client. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPUserAgent = "http.user_agent" - // The size of the request payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLength = "http.request_content_length" - // The size of the uncompressed request payload body after transport decoding. Not - // set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" - // The size of the response payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLength = "http.response_content_length" - // The size of the uncompressed response payload body after transport decoding. - // Not set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" -) - -const ( - // HTTP 1.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP10 = "1.0" - // HTTP 1.1 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP11 = "1.1" - // HTTP 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP20 = "2.0" - // SPDY protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorSPDY = "SPDY" - // QUIC protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorQUIC = "QUIC" -) - -// Semantic Convention for HTTP Server -const ( - // The primary server name of the matched virtual host. This should be obtained - // via configuration. If no such configuration can be obtained, this attribute - // MUST NOT be set ( net.host.name should be used instead). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Note: http.url is usually not readily available on the server side but would - // have to be assembled in a cumbersome and sometimes lossy process from other - // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus - // preferred to supply the raw data that is available. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPServerName = "http.server_name" - // The matched route (path template). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/users/:userID?' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRoute = "http.route" - // The IP address of the original client behind all proxies, if known (e.g. from - // X-Forwarded-For). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '83.164.160.102' - // Note: This is not necessarily the same as net.peer.ip, which would identify the - // network-level peer, which may be a proxy. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPClientIP = "http.client_ip" -) - -// Attributes that exist for multiple DynamoDB request types. -const ( - // The keys in the RequestItems object field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'Users', 'Cats' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" - // The JSON-serialized value of each item in the ConsumedCapacity response field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { - // "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, - // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": - // "string", "WriteCapacityUnits": number }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" - // The JSON-serialized value of the ItemCollectionMetrics response field. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, - // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : - // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": - // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" - // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" - // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" - // The value of the ConsistentRead request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" - // The value of the ProjectionExpression request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, - // ProductReviews' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" - // The value of the Limit request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" - // The value of the AttributesToGet request parameter. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'lives', 'id' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" - // The value of the IndexName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'name_to_group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" - // The value of the Select request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ALL_ATTRIBUTES', 'COUNT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSelect = "aws.dynamodb.select" -) - -// DynamoDB.CreateTable -const ( - // The JSON-serialized value of each item of the GlobalSecondaryIndexes request - // field - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": - // number, "WriteCapacityUnits": number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" - // The JSON-serialized value of each item of the LocalSecondaryIndexes request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": - // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" -) - -// DynamoDB.ListTables -const ( - // The value of the ExclusiveStartTableName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Users', 'CatsTable' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" - // The the number of items in the TableNames response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 20 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" -) - -// DynamoDB.Query -const ( - // The value of the ScanIndexForward request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" -) - -// DynamoDB.Scan -const ( - // The value of the Segment request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" - // The value of the TotalSegments request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" - // The value of the Count response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBCount = "aws.dynamodb.count" - // The value of the ScannedCount response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 50 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" -) - -// DynamoDB.UpdateTable -const ( - // The JSON-serialized value of each item in the AttributeDefinitions request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" - // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates - // request field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { - // "AttributeName": "string", "KeyType": "string" } ], "Projection": { - // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, - // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" -) - -// This document defines the attributes used in messaging systems. -const ( - // A string identifying the messaging system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingSystem = "messaging.system" - // The message destination name. This might be equal to the span name but is - // required nevertheless. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'MyQueue', 'MyTopic' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestination = "messaging.destination" - // The kind of message destination - // - // Type: Enum - // Required: Required only if the message destination is either a `queue` or - // `topic`. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKind = "messaging.destination_kind" - // A boolean that is true if the message destination is temporary. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingTempDestination = "messaging.temp_destination" - // The name of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AMQP', 'MQTT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocol = "messaging.protocol" - // The version of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.9.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocolVersion = "messaging.protocol_version" - // Connection string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'tibjmsnaming://localhost:7222', - // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingURL = "messaging.url" - // A value used by the messaging system as an identifier for the message, - // represented as a string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '452a7c7c7c7048c2f887f61572b18fc2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessageID = "messaging.message_id" - // The conversation ID identifying the conversation to which the message belongs, - // represented as a string. Sometimes called "Correlation ID". - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MyConversationID' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConversationID = "messaging.conversation_id" - // The (uncompressed) size of the message payload in bytes. Also use this - // attribute if it is unknown whether the compressed or uncompressed payload size - // is reported. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2738 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" - // The compressed size of the message payload in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2048 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" -) - -const ( - // A message sent to a queue - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindQueue = "queue" - // A message sent to a topic - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindTopic = "topic" -) - -// Semantic convention for a consumer of messages received from a messaging system -const ( - // A string identifying the kind of message consumption as defined in the - // Operation names section above. If the operation is "send", this - // attribute MUST NOT be set, since the operation can be inferred from the span - // kind in that case. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperation = "messaging.operation" -) - -const ( - // receive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationReceive = "receive" - // process - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationProcess = "process" -) - -// Attributes for RabbitMQ -const ( - // RabbitMQ message routing key. - // - // Type: string - // Required: Unless it is empty. - // Stability: stable - // Examples: 'myKey' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" -) - -// Attributes for Apache Kafka -const ( - // Message keys in Kafka are used for grouping alike messages to ensure they're - // processed on the same partition. They differ from messaging.message_id in that - // they're not unique. If the key is null, the attribute MUST NOT be set. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myKey' - // Note: If the key type is not string, it's string representation has to be - // supplied for the attribute. If the key has no unambiguous, canonical string - // form, don't include its value. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" - // Name of the Kafka Consumer Group that is handling the message. Only applies to - // consumers, not producers. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'my-group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" - // Client ID for the Consumer or Producer that is handling the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'client-5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaClientID = "messaging.kafka.client_id" - // Partition the message is sent to. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaPartition = "messaging.kafka.partition" - // A boolean that is true if the message is a tombstone. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" -) - -// This document defines semantic conventions for remote procedure calls. -const ( - // A string identifying the remoting system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'grpc', 'java_rmi', 'wcf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCSystem = "rpc.system" - // The full (logical) name of the service being called, including its package - // name, if applicable. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'myservice.EchoService' - // Note: This is the logical name of the service from the RPC interface - // perspective, which can be different from the name of any implementing class. - // The code.namespace attribute may be used to store the latter (despite the - // attribute name, it may include a class name; e.g., class with method actually - // executing the call on the server side, RPC client stub class on the client - // side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCService = "rpc.service" - // The name of the (logical) method being called, must be equal to the $method - // part in the span name. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'exampleMethod' - // Note: This is the logical name of the method from the RPC interface - // perspective, which can be different from the name of any implementing - // method/function. The code.function attribute may be used to store the latter - // (e.g., method actually executing the call on the server side, RPC client stub - // method on the client side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCMethod = "rpc.method" -) - -// Tech-specific attributes for gRPC. -const ( - // The numeric status code of the gRPC request. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" -) - -const ( - // OK - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOk = "0" - // CANCELLED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeCancelled = "1" - // UNKNOWN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnknown = "2" - // INVALID_ARGUMENT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInvalidArgument = "3" - // DEADLINE_EXCEEDED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" - // NOT_FOUND - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeNotFound = "5" - // ALREADY_EXISTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAlreadyExists = "6" - // PERMISSION_DENIED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodePermissionDenied = "7" - // RESOURCE_EXHAUSTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeResourceExhausted = "8" - // FAILED_PRECONDITION - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeFailedPrecondition = "9" - // ABORTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAborted = "10" - // OUT_OF_RANGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOutOfRange = "11" - // UNIMPLEMENTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnimplemented = "12" - // INTERNAL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInternal = "13" - // UNAVAILABLE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnavailable = "14" - // DATA_LOSS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDataLoss = "15" - // UNAUTHENTICATED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnauthenticated = "16" -) - -// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). -const ( - // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 - // does not specify this, the value can be omitted. - // - // Type: string - // Required: If missing, it is assumed to be "1.0". - // Stability: stable - // Examples: '2.0', '1.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" - // id property of request or response. Since protocol allows id to be int, string, - // null or missing (for notifications), value is expected to be cast to string for - // simplicity. Use empty string in case of null value. Omit entirely if this is a - // notification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '10', 'request-7', '' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" - // error.code property of response if it is an error response. - // - // Type: int - // Required: If missing, response is assumed to be successful. - // Stability: stable - // Examples: -32700, 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" - // error.message property of response if it is an error response. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Parse error', 'User already exists' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetTraceSemanticConventionAttributeNames() []string { - return []string{ - AttributeAWSLambdaInvokedARN, - AttributeDBSystem, - AttributeDBConnectionString, - AttributeDBUser, - AttributeDBJDBCDriverClassname, - AttributeDBName, - AttributeDBStatement, - AttributeDBOperation, - AttributeDBMSSQLInstanceName, - AttributeDBCassandraKeyspace, - AttributeDBCassandraPageSize, - AttributeDBCassandraConsistencyLevel, - AttributeDBCassandraTable, - AttributeDBCassandraIdempotence, - AttributeDBCassandraSpeculativeExecutionCount, - AttributeDBCassandraCoordinatorID, - AttributeDBCassandraCoordinatorDC, - AttributeDBHBaseNamespace, - AttributeDBRedisDBIndex, - AttributeDBMongoDBCollection, - AttributeDBSQLTable, - AttributeExceptionType, - AttributeExceptionMessage, - AttributeExceptionStacktrace, - AttributeExceptionEscaped, - AttributeFaaSTrigger, - AttributeFaaSExecution, - AttributeFaaSDocumentCollection, - AttributeFaaSDocumentOperation, - AttributeFaaSDocumentTime, - AttributeFaaSDocumentName, - AttributeFaaSTime, - AttributeFaaSCron, - AttributeFaaSColdstart, - AttributeFaaSInvokedName, - AttributeFaaSInvokedProvider, - AttributeFaaSInvokedRegion, - AttributeNetTransport, - AttributeNetPeerIP, - AttributeNetPeerPort, - AttributeNetPeerName, - AttributeNetHostIP, - AttributeNetHostPort, - AttributeNetHostName, - AttributeNetHostConnectionType, - AttributeNetHostConnectionSubtype, - AttributeNetHostCarrierName, - AttributeNetHostCarrierMcc, - AttributeNetHostCarrierMnc, - AttributeNetHostCarrierIcc, - AttributePeerService, - AttributeEnduserID, - AttributeEnduserRole, - AttributeEnduserScope, - AttributeThreadID, - AttributeThreadName, - AttributeCodeFunction, - AttributeCodeNamespace, - AttributeCodeFilepath, - AttributeCodeLineNumber, - AttributeHTTPMethod, - AttributeHTTPURL, - AttributeHTTPTarget, - AttributeHTTPHost, - AttributeHTTPScheme, - AttributeHTTPStatusCode, - AttributeHTTPFlavor, - AttributeHTTPUserAgent, - AttributeHTTPRequestContentLength, - AttributeHTTPRequestContentLengthUncompressed, - AttributeHTTPResponseContentLength, - AttributeHTTPResponseContentLengthUncompressed, - AttributeHTTPServerName, - AttributeHTTPRoute, - AttributeHTTPClientIP, - AttributeAWSDynamoDBTableNames, - AttributeAWSDynamoDBConsumedCapacity, - AttributeAWSDynamoDBItemCollectionMetrics, - AttributeAWSDynamoDBProvisionedReadCapacity, - AttributeAWSDynamoDBProvisionedWriteCapacity, - AttributeAWSDynamoDBConsistentRead, - AttributeAWSDynamoDBProjection, - AttributeAWSDynamoDBLimit, - AttributeAWSDynamoDBAttributesToGet, - AttributeAWSDynamoDBIndexName, - AttributeAWSDynamoDBSelect, - AttributeAWSDynamoDBGlobalSecondaryIndexes, - AttributeAWSDynamoDBLocalSecondaryIndexes, - AttributeAWSDynamoDBExclusiveStartTable, - AttributeAWSDynamoDBTableCount, - AttributeAWSDynamoDBScanForward, - AttributeAWSDynamoDBSegment, - AttributeAWSDynamoDBTotalSegments, - AttributeAWSDynamoDBCount, - AttributeAWSDynamoDBScannedCount, - AttributeAWSDynamoDBAttributeDefinitions, - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, - AttributeMessagingSystem, - AttributeMessagingDestination, - AttributeMessagingDestinationKind, - AttributeMessagingTempDestination, - AttributeMessagingProtocol, - AttributeMessagingProtocolVersion, - AttributeMessagingURL, - AttributeMessagingMessageID, - AttributeMessagingConversationID, - AttributeMessagingMessagePayloadSizeBytes, - AttributeMessagingMessagePayloadCompressedSizeBytes, - AttributeMessagingOperation, - AttributeMessagingRabbitmqRoutingKey, - AttributeMessagingKafkaMessageKey, - AttributeMessagingKafkaConsumerGroup, - AttributeMessagingKafkaClientID, - AttributeMessagingKafkaPartition, - AttributeMessagingKafkaTombstone, - AttributeRPCSystem, - AttributeRPCService, - AttributeRPCMethod, - AttributeRPCGRPCStatusCode, - AttributeRPCJsonrpcVersion, - AttributeRPCJsonrpcRequestID, - AttributeRPCJsonrpcErrorCode, - AttributeRPCJsonrpcErrorMessage, - } -} diff --git a/model/semconv/v1.6.1/nonstandard.go b/model/semconv/v1.6.1/nonstandard.go deleted file mode 100644 index ab69b60bb5e..00000000000 --- a/model/semconv/v1.6.1/nonstandard.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.6.1" - -const ( - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryName = "otel.library.name" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryVersion = "otel.library.version" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusCode = "otel.status_code" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusDescription = "otel.status_description" -) diff --git a/model/semconv/v1.6.1/schema.go b/model/semconv/v1.6.1/schema.go deleted file mode 100644 index 56e5911d68f..00000000000 --- a/model/semconv/v1.6.1/schema.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.6.1" - -// SchemaURL is the schema URL that matches the version of the semantic conventions -// that this package defines. Conventions packages starting from v1.4.0 must declare -// non-empty schema URL in the form https://opentelemetry.io/schemas/ -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -const SchemaURL = "https://opentelemetry.io/schemas/1.6.1" diff --git a/model/semconv/v1.7.0/generated_resource.go b/model/semconv/v1.7.0/generated_resource.go deleted file mode 100644 index 8f415f87cb1..00000000000 --- a/model/semconv/v1.7.0/generated_resource.go +++ /dev/null @@ -1,1135 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv - -// A cloud environment (e.g. GCP, Azure, AWS) -const ( - // Name of the cloud provider. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProvider = "cloud.provider" - // The cloud account ID the resource is assigned to. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '111111111111', 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAccountID = "cloud.account.id" - // The geographical region the resource is running. Refer to your provider's docs - // to see the available regions, for example Alibaba Cloud regions, AWS regions, - // Azure regions, or Google Cloud regions. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-central1', 'us-east-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudRegion = "cloud.region" - // Cloud regions often have multiple, isolated locations known as zones to - // increase availability. Availability zone represents the zone where the resource - // is running. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-east-1c' - // Note: Availability zones are called "zones" on Alibaba Cloud and - // Google Cloud. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAvailabilityZone = "cloud.availability_zone" - // The cloud platform in use. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: The prefix of the service SHOULD match the one specified in - // cloud.provider. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatform = "cloud.platform" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderGCP = "gcp" -) - -const ( - // Alibaba Cloud Elastic Compute Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" - // Alibaba Cloud Function Compute - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" - // AWS Elastic Compute Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEC2 = "aws_ec2" - // AWS Elastic Container Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSECS = "aws_ecs" - // AWS Elastic Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEKS = "aws_eks" - // AWS Lambda - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSLambda = "aws_lambda" - // AWS Elastic Beanstalk - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" - // Azure Virtual Machines - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureVM = "azure_vm" - // Azure Container Instances - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" - // Azure Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAKS = "azure_aks" - // Azure Functions - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureFunctions = "azure_functions" - // Azure App Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAppService = "azure_app_service" - // Google Cloud Compute Engine (GCE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" - // Google Cloud Run - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" - // Google Cloud Kubernetes Engine (GKE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" - // Google Cloud Functions (GCF) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" - // Google Cloud App Engine (GAE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" -) - -// Resources used by AWS Elastic Container Service (ECS). -const ( - // The Amazon Resource Name (ARN) of an ECS container instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSContainerARN = "aws.ecs.container.arn" - // The ARN of an ECS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" - // The launch type for an ECS task. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtype = "aws.ecs.launchtype" - // The ARN of an ECS task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskARN = "aws.ecs.task.arn" - // The task definition family this task definition is a member of. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-family' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskFamily = "aws.ecs.task.family" - // The revision for this task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '8', '26' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskRevision = "aws.ecs.task.revision" -) - -const ( - // ec2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeEC2 = "ec2" - // fargate - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeFargate = "fargate" -) - -// Resources used by AWS Elastic Kubernetes Service (EKS). -const ( - // The ARN of an EKS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" -) - -// Resources specific to Amazon Web Services. -const ( - // The name(s) of the AWS log group(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '/aws/lambda/my-function', 'opentelemetry-service' - // Note: Multiple log groups must be supported for cases like multi-container - // applications, where a single application has sidecar containers, and each write - // to their own log group. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupNames = "aws.log.group.names" - // The Amazon Resource Name(s) (ARN) of the AWS log group(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' - // Note: See the log group ARN format documentation. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupARNs = "aws.log.group.arns" - // The name(s) of the AWS log stream(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamNames = "aws.log.stream.names" - // The ARN(s) of the AWS log stream(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log- - // stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Note: See the log stream ARN format documentation. One log group can contain - // several log streams, so these ARNs necessarily identify both a log group and a - // log stream. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamARNs = "aws.log.stream.arns" -) - -// A container instance. -const ( - // Container name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerName = "container.name" - // Container ID. Usually a UUID, as for example used to identify Docker - // containers. The UUID might be abbreviated. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'a3bf90e006b2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerID = "container.id" - // The container runtime managing this container. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'docker', 'containerd', 'rkt' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerRuntime = "container.runtime" - // Name of the image the container was built on. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'gcr.io/opentelemetry/operator' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageName = "container.image.name" - // Container image tag. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageTag = "container.image.tag" -) - -// The software deployment. -const ( - // Name of the deployment environment (aka deployment tier). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'staging', 'production' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeploymentEnvironment = "deployment.environment" -) - -// The device on which the process represented by this resource is running. -const ( - // A unique identifier representing the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2ab2916d-a51f-4ac8-80ee-45ac31a28092' - // Note: The device identifier MUST only be defined using the values outlined - // below. This value is not an advertising identifier and MUST NOT be used as - // such. On iOS (Swift or Objective-C), this value MUST be equal to the vendor - // identifier. On Android (Java or Kotlin), this value MUST be equal to the - // Firebase Installation ID or a globally unique UUID which is persisted across - // sessions in your application. More information can be found here on best - // practices and exact implementation details. Caution should be taken when - // storing personal data or anything which can identify a user. GDPR and data - // protection laws may apply, ensure you do your own due diligence. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceID = "device.id" - // The model identifier for the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone3,4', 'SM-G920F' - // Note: It's recommended this value represents a machine readable version of the - // model identifier rather than the market or consumer-friendly name of the - // device. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelIdentifier = "device.model.identifier" - // The marketing name for the device model - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone 6s Plus', 'Samsung Galaxy S6' - // Note: It's recommended this value represents a human readable version of the - // device model rather than a machine readable alternative. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelName = "device.model.name" -) - -// A serverless instance. -const ( - // The name of the single function that this runtime instance executes. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: This is the name of the function as configured/deployed on the FaaS - // platform and is usually different from the name of the callback function (which - // may be stored in the code.namespace/code.function span attributes). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSName = "faas.name" - // The unique ID of the single function that this runtime instance executes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' - // Note: Depending on the cloud provider, use:
    - //
  • AWS Lambda: The function ARN.
  • - //
- // Take care not to use the "invoked ARN" directly but replace any - // alias suffix with the resolved function version, as the same runtime instance - // may be invokable with multiple - // different aliases.
    - //
  • GCP: The URI of the resource
  • - //
  • Azure: The Fully Qualified Resource ID.
  • - //
- // On some providers, it may not be possible to determine the full ID at startup, - // which is why this field cannot be made required. For example, on AWS the - // account ID - // part of the ARN is not available without calling another AWS API - // which may be deemed too slow for a short-running lambda function. - // As an alternative, consider setting faas.id as a span attribute instead. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSID = "faas.id" - // The immutable version of the function being executed. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '26', 'pinkfroid-00002' - // Note: Depending on the cloud provider and platform, use:
    - //
  • AWS Lambda: The function version - // (an integer represented as a decimal string).
  • - //
  • Google Cloud Run: The revision - // (i.e., the function name plus the revision suffix).
  • - //
  • Google Cloud Functions: The value of the - // K_REVISION environment variable.
  • - //
  • Azure Functions: Not applicable. Do not set this attribute.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSVersion = "faas.version" - // The execution environment ID as a string, that will be potentially reused for - // other invocations to the same function/function version. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' - // Note:
    - //
  • AWS Lambda: Use the (full) log stream name.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInstance = "faas.instance" - // The amount of memory available to the serverless function in MiB. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 128 - // Note: It's recommended to set this attribute since e.g. too little memory can - // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, - // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this - // information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSMaxMemory = "faas.max_memory" -) - -// A host is defined as a general computing instance. -const ( - // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud - // provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostID = "host.id" - // Name of the host. On Unix systems, it may contain what the hostname command - // returns, or the fully qualified hostname, or another name specified by the - // user. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostName = "host.name" - // Type of host. For Cloud, this must be the machine type. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'n1-standard-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostType = "host.type" - // The CPU architecture the host system is running on. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArch = "host.arch" - // Name of the VM image or OS install the host was instantiated from. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageName = "host.image.name" - // VM image ID. For Cloud, this value is from the provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ami-07b06b442921831e5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageID = "host.image.id" - // The version string of the VM image as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageVersion = "host.image.version" -) - -const ( - // AMD64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchAMD64 = "amd64" - // ARM32 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM32 = "arm32" - // ARM64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM64 = "arm64" - // Itanium - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchIA64 = "ia64" - // 32-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC32 = "ppc32" - // 64-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC64 = "ppc64" - // 32-bit x86 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchX86 = "x86" -) - -// A Kubernetes Cluster. -const ( - // The name of the cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SClusterName = "k8s.cluster.name" -) - -// A Kubernetes Node object. -const ( - // The name of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'node-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeName = "k8s.node.name" - // The UID of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeUID = "k8s.node.uid" -) - -// A Kubernetes Namespace. -const ( - // The name of the namespace that the pod is running in. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNamespaceName = "k8s.namespace.name" -) - -// A Kubernetes Pod object. -const ( - // The UID of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodUID = "k8s.pod.uid" - // The name of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-pod-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodName = "k8s.pod.name" -) - -// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). -const ( - // The name of the Container in a Pod template. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'redis' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SContainerName = "k8s.container.name" -) - -// A Kubernetes ReplicaSet object. -const ( - // The UID of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetUID = "k8s.replicaset.uid" - // The name of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetName = "k8s.replicaset.name" -) - -// A Kubernetes Deployment object. -const ( - // The UID of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentUID = "k8s.deployment.uid" - // The name of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentName = "k8s.deployment.name" -) - -// A Kubernetes StatefulSet object. -const ( - // The UID of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetUID = "k8s.statefulset.uid" - // The name of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetName = "k8s.statefulset.name" -) - -// A Kubernetes DaemonSet object. -const ( - // The UID of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetUID = "k8s.daemonset.uid" - // The name of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetName = "k8s.daemonset.name" -) - -// A Kubernetes Job object. -const ( - // The UID of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobUID = "k8s.job.uid" - // The name of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobName = "k8s.job.name" -) - -// A Kubernetes CronJob object. -const ( - // The UID of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobUID = "k8s.cronjob.uid" - // The name of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobName = "k8s.cronjob.name" -) - -// The operating system (OS) on which the process represented by this resource is running. -const ( - // The operating system type. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSType = "os.type" - // Human readable (not intended to be parsed) OS version information, like e.g. - // reported by ver or lsb_release -a commands. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSDescription = "os.description" - // Human readable operating system name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iOS', 'Android', 'Ubuntu' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSName = "os.name" - // The version string of the operating system as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.2.1', '18.04.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSVersion = "os.version" -) - -const ( - // Microsoft Windows - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeWindows = "windows" - // Linux - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeLinux = "linux" - // Apple Darwin - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDarwin = "darwin" - // FreeBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeFreeBSD = "freebsd" - // NetBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeNetBSD = "netbsd" - // OpenBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeOpenBSD = "openbsd" - // DragonFly BSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDragonflyBSD = "dragonflybsd" - // HP-UX (Hewlett Packard Unix) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeHPUX = "hpux" - // AIX (Advanced Interactive eXecutive) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeAIX = "aix" - // Oracle Solaris - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeSolaris = "solaris" - // IBM z/OS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeZOS = "z_os" -) - -// An operating system process. -const ( - // Process identifier (PID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 1234 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessPID = "process.pid" - // The name of the process executable. On Linux based systems, can be set to the - // Name in proc/[pid]/status. On Windows, can be set to the base name of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutableName = "process.executable.name" - // The full path to the process executable. On Linux based systems, can be set to - // the target of proc/[pid]/exe. On Windows, can be set to the result of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: '/usr/bin/cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutablePath = "process.executable.path" - // The command used to launch the process (i.e. the command name). On Linux based - // systems, can be set to the zeroth string in proc/[pid]/cmdline. On Windows, can - // be set to the first parameter extracted from GetCommandLineW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommand = "process.command" - // The full command used to launch the process as a single string representing the - // full command. On Windows, can be set to the result of GetCommandLineW. Do not - // set this if you have to assemble it just for monitoring; use - // process.command_args instead. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandLine = "process.command_line" - // All the command arguments (including the command/executable itself) as received - // by the process. On Linux-based systems (and some other Unixoid systems - // supporting procfs), can be set according to the list of null-delimited strings - // extracted from proc/[pid]/cmdline. For libc-based executables, this would be - // the full argv vector passed to main. - // - // Type: string[] - // Required: See below - // Stability: stable - // Examples: 'cmd/otecol', '--config=config.yaml' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandArgs = "process.command_args" - // The username of the user that owns the process. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'root' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessOwner = "process.owner" -) - -// The single (language) runtime instance which is monitored. -const ( - // The name of the runtime of this process. For compiled native binaries, this - // SHOULD be the name of the compiler. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'OpenJDK Runtime Environment' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeName = "process.runtime.name" - // The version of the runtime of this process, as returned by the runtime without - // modification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.0.2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeVersion = "process.runtime.version" - // An additional description about the runtime of the process, for example a - // specific vendor customization of the runtime environment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeDescription = "process.runtime.description" -) - -// A service instance. -const ( - // Logical name of the service. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'shoppingcart' - // Note: MUST be the same for all instances of horizontally scaled services. If - // the value was not specified, SDKs MUST fallback to unknown_service: - // concatenated with process.executable.name, e.g. unknown_service:bash. If - // process.executable.name is not available, the value MUST be set to - // unknown_service. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceName = "service.name" - // A namespace for service.name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Shop' - // Note: A string value having a meaning that helps to distinguish a group of - // services, for example the team name that owns a group of services. service.name - // is expected to be unique within the same namespace. If service.namespace is not - // specified in the Resource then service.name is expected to be unique for all - // services that have no explicit namespace defined (so the empty/unspecified - // namespace is simply one more valid namespace). Zero-length namespace string is - // assumed equal to unspecified namespace. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceNamespace = "service.namespace" - // The string ID of the service instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '627cc493-f310-47de-96bd-71410b7dec09' - // Note: MUST be unique for each instance of the same - // service.namespace,service.name pair (in other words - // service.namespace,service.name,service.instance.id triplet MUST be globally - // unique). The ID helps to distinguish instances of the same service that exist - // at the same time (e.g. instances of a horizontally scaled service). It is - // preferable for the ID to be persistent and stay the same for the lifetime of - // the service instance, however it is acceptable that the ID is ephemeral and - // changes during important lifetime events for the service (e.g. service - // restarts). If the service has no inherent unique ID that can be used as the - // value of this attribute it is recommended to generate a random Version 1 or - // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use - // Version 5, see RFC 4122 for more recommendations). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceInstanceID = "service.instance.id" - // The version string of the service API or implementation. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceVersion = "service.version" -) - -// The telemetry SDK used to capture data recorded by the instrumentation libraries. -const ( - // The name of the telemetry SDK as defined above. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKName = "telemetry.sdk.name" - // The language of the telemetry SDK. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguage = "telemetry.sdk.language" - // The version string of the telemetry SDK. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKVersion = "telemetry.sdk.version" - // The version string of the auto instrumentation agent, if used. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetryAutoVersion = "telemetry.auto.version" -) - -const ( - // cpp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageCPP = "cpp" - // dotnet - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageDotnet = "dotnet" - // erlang - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageErlang = "erlang" - // go - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageGo = "go" - // java - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageJava = "java" - // nodejs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageNodejs = "nodejs" - // php - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePHP = "php" - // python - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePython = "python" - // ruby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageRuby = "ruby" - // webjs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageWebjs = "webjs" -) - -// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. -const ( - // The name of the web engine. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'WildFly' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineName = "webengine.name" - // The version of the web engine. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '21.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineVersion = "webengine.version" - // Additional description of the web engine (e.g. detailed version and edition - // information). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineDescription = "webengine.description" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetResourceSemanticConventionAttributeNames() []string { - return []string{ - AttributeCloudProvider, - AttributeCloudAccountID, - AttributeCloudRegion, - AttributeCloudAvailabilityZone, - AttributeCloudPlatform, - AttributeAWSECSContainerARN, - AttributeAWSECSClusterARN, - AttributeAWSECSLaunchtype, - AttributeAWSECSTaskARN, - AttributeAWSECSTaskFamily, - AttributeAWSECSTaskRevision, - AttributeAWSEKSClusterARN, - AttributeAWSLogGroupNames, - AttributeAWSLogGroupARNs, - AttributeAWSLogStreamNames, - AttributeAWSLogStreamARNs, - AttributeContainerName, - AttributeContainerID, - AttributeContainerRuntime, - AttributeContainerImageName, - AttributeContainerImageTag, - AttributeDeploymentEnvironment, - AttributeDeviceID, - AttributeDeviceModelIdentifier, - AttributeDeviceModelName, - AttributeFaaSName, - AttributeFaaSID, - AttributeFaaSVersion, - AttributeFaaSInstance, - AttributeFaaSMaxMemory, - AttributeHostID, - AttributeHostName, - AttributeHostType, - AttributeHostArch, - AttributeHostImageName, - AttributeHostImageID, - AttributeHostImageVersion, - AttributeK8SClusterName, - AttributeK8SNodeName, - AttributeK8SNodeUID, - AttributeK8SNamespaceName, - AttributeK8SPodUID, - AttributeK8SPodName, - AttributeK8SContainerName, - AttributeK8SReplicaSetUID, - AttributeK8SReplicaSetName, - AttributeK8SDeploymentUID, - AttributeK8SDeploymentName, - AttributeK8SStatefulSetUID, - AttributeK8SStatefulSetName, - AttributeK8SDaemonSetUID, - AttributeK8SDaemonSetName, - AttributeK8SJobUID, - AttributeK8SJobName, - AttributeK8SCronJobUID, - AttributeK8SCronJobName, - AttributeOSType, - AttributeOSDescription, - AttributeOSName, - AttributeOSVersion, - AttributeProcessPID, - AttributeProcessExecutableName, - AttributeProcessExecutablePath, - AttributeProcessCommand, - AttributeProcessCommandLine, - AttributeProcessCommandArgs, - AttributeProcessOwner, - AttributeProcessRuntimeName, - AttributeProcessRuntimeVersion, - AttributeProcessRuntimeDescription, - AttributeServiceName, - AttributeServiceNamespace, - AttributeServiceInstanceID, - AttributeServiceVersion, - AttributeTelemetrySDKName, - AttributeTelemetrySDKLanguage, - AttributeTelemetrySDKVersion, - AttributeTelemetryAutoVersion, - AttributeWebEngineName, - AttributeWebEngineVersion, - AttributeWebEngineDescription, - } -} diff --git a/model/semconv/v1.7.0/generated_trace.go b/model/semconv/v1.7.0/generated_trace.go deleted file mode 100644 index 058dab79e83..00000000000 --- a/model/semconv/v1.7.0/generated_trace.go +++ /dev/null @@ -1,1923 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv - -// Span attributes used by AWS Lambda (in addition to general `faas` attributes). -const ( - // The full invoked ARN as provided on the Context passed to the function (Lambda- - // Runtime-Invoked-Function-ARN header on the /runtime/invocation/next - // applicable). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' - // Note: This may be different from faas.id if an alias is involved. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" -) - -// This document defines the attributes used to perform database client calls. -const ( - // An identifier for the database management system (DBMS) product being used. See - // below for a list of well-known identifiers. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystem = "db.system" - // The connection string used to connect to the database. It is recommended to - // remove embedded credentials. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBConnectionString = "db.connection_string" - // Username for accessing the database. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'readonly_user', 'reporting_user' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBUser = "db.user" - // The fully-qualified class name of the Java Database Connectivity (JDBC) driver - // used to connect. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'org.postgresql.Driver', - // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" - // If no tech-specific attribute is defined, this attribute is used to report the - // name of the database being accessed. For commands that switch the database, - // this should be set to the target database (even if the command fails). - // - // Type: string - // Required: Required, if applicable and no more-specific attribute is defined. - // Stability: stable - // Examples: 'customers', 'main' - // Note: In some SQL databases, the database name to be used is called - // "schema name". - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBName = "db.name" - // The database statement being executed. - // - // Type: string - // Required: Required if applicable and not explicitly disabled via - // instrumentation configuration. - // Stability: stable - // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' - // Note: The value may be sanitized to exclude sensitive information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBStatement = "db.statement" - // The name of the operation being executed, e.g. the MongoDB command name such as - // findAndModify, or the SQL keyword. - // - // Type: string - // Required: Required, if `db.statement` is not applicable. - // Stability: stable - // Examples: 'findAndModify', 'HMSET', 'SELECT' - // Note: When setting this to an SQL keyword, it is not recommended to attempt any - // client-side parsing of db.statement just to get this property, but it should be - // set if the operation name is provided by the library being instrumented. If the - // SQL statement has an ambiguous operation, or performs more than one operation, - // this value may be omitted. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBOperation = "db.operation" -) - -const ( - // Some other SQL database. Fallback only. See notes - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOtherSQL = "other_sql" - // Microsoft SQL Server - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMSSQL = "mssql" - // MySQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMySQL = "mysql" - // Oracle Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOracle = "oracle" - // IBM DB2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDB2 = "db2" - // PostgreSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPostgreSQL = "postgresql" - // Amazon Redshift - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedshift = "redshift" - // Apache Hive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHive = "hive" - // Cloudscape - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCloudscape = "cloudscape" - // HyperSQL DataBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHSQLDB = "hsqldb" - // Progress Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemProgress = "progress" - // SAP MaxDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMaxDB = "maxdb" - // SAP HANA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHanaDB = "hanadb" - // Ingres - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemIngres = "ingres" - // FirstSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirstSQL = "firstsql" - // EnterpriseDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemEDB = "edb" - // InterSystems Caché - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCache = "cache" - // Adabas (Adaptable Database System) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemAdabas = "adabas" - // Firebird - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirebird = "firebird" - // Apache Derby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDerby = "derby" - // FileMaker - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFilemaker = "filemaker" - // Informix - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInformix = "informix" - // InstantDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInstantDB = "instantdb" - // InterBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInterbase = "interbase" - // MariaDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMariaDB = "mariadb" - // Netezza - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNetezza = "netezza" - // Pervasive PSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPervasive = "pervasive" - // PointBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPointbase = "pointbase" - // SQLite - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSqlite = "sqlite" - // Sybase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSybase = "sybase" - // Teradata - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemTeradata = "teradata" - // Vertica - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemVertica = "vertica" - // H2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemH2 = "h2" - // ColdFusion IMQ - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemColdfusion = "coldfusion" - // Apache Cassandra - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCassandra = "cassandra" - // Apache HBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHBase = "hbase" - // MongoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMongoDB = "mongodb" - // Redis - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedis = "redis" - // Couchbase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchbase = "couchbase" - // CouchDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchDB = "couchdb" - // Microsoft Azure Cosmos DB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCosmosDB = "cosmosdb" - // Amazon DynamoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDynamoDB = "dynamodb" - // Neo4j - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNeo4j = "neo4j" - // Apache Geode - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemGeode = "geode" - // Elasticsearch - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemElasticsearch = "elasticsearch" - // Memcached - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMemcached = "memcached" - // CockroachDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCockroachdb = "cockroachdb" -) - -// Connection-level attributes for Microsoft SQL Server -const ( - // The Microsoft SQL Server instance name connecting to. This name is used to - // determine the port of a named instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MSSQLSERVER' - // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required - // (but still recommended if non-standard). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMSSQLInstanceName = "db.mssql.instance_name" -) - -// Call-level attributes for Cassandra -const ( - // The name of the keyspace being accessed. To be used instead of the generic - // db.name attribute. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'mykeyspace' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraKeyspace = "db.cassandra.keyspace" - // The fetch size used for paging, i.e. how many rows will be returned at once. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5000 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraPageSize = "db.cassandra.page_size" - // The consistency level of the query. Based on consistency values from CQL. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" - // The name of the primary table that the operation is acting upon, including the - // schema name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'mytable' - // Note: This mirrors the db.sql.table attribute but references cassandra rather - // than sql. It is not recommended to attempt any client-side parsing of - // db.statement just to get this property, but it should be set if it is provided - // by the library being instrumented. If the operation is acting upon an anonymous - // table, or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraTable = "db.cassandra.table" - // Whether or not the query is idempotent. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraIdempotence = "db.cassandra.idempotence" - // The number of times a query was speculatively executed. Not set or 0 if the - // query was not executed speculatively. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 0, 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" - // The ID of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" - // The data center of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-west-2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" -) - -const ( - // all - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAll = "all" - // each_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" - // quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelQuorum = "quorum" - // local_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" - // one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelOne = "one" - // two - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelTwo = "two" - // three - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelThree = "three" - // local_one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalOne = "local_one" - // any - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAny = "any" - // serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelSerial = "serial" - // local_serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" -) - -// Call-level attributes for Apache HBase -const ( - // The HBase namespace being accessed. To be used instead of the generic db.name - // attribute. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBHBaseNamespace = "db.hbase.namespace" -) - -// Call-level attributes for Redis -const ( - // The index of the database being accessed as used in the SELECT command, - // provided as an integer. To be used instead of the generic db.name attribute. - // - // Type: int - // Required: Required, if other than the default database (`0`). - // Stability: stable - // Examples: 0, 1, 15 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBRedisDBIndex = "db.redis.database_index" -) - -// Call-level attributes for MongoDB -const ( - // The collection being accessed within the database stated in db.name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'customers', 'products' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMongoDBCollection = "db.mongodb.collection" -) - -// Call-level attrbiutes for SQL databases -const ( - // The name of the primary table that the operation is acting upon, including the - // schema name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'public.users', 'customers' - // Note: It is not recommended to attempt any client-side parsing of db.statement - // just to get this property, but it should be set if it is provided by the - // library being instrumented. If the operation is acting upon an anonymous table, - // or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSQLTable = "db.sql.table" -) - -// This document defines the attributes used to report a single exception associated with a span. -const ( - // The type of the exception (its fully-qualified class name, if applicable). The - // dynamic type of the exception should be preferred over the static type in - // languages that support it. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'java.net.ConnectException', 'OSError' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionType = "exception.type" - // The exception message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionMessage = "exception.message" - // A stacktrace as a string in the natural representation for the language - // runtime. The representation is to be determined and documented by each language - // SIG. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Exception in thread "main" java.lang.RuntimeException: Test - // exception\\n at ' - // 'com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at ' - // 'com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at ' - // 'com.example.GenerateTrace.main(GenerateTrace.java:5)' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionStacktrace = "exception.stacktrace" - // SHOULD be set to true if the exception event is recorded at a point where it is - // known that the exception is escaping the scope of the span. - // - // Type: boolean - // Required: No - // Stability: stable - // Note: An exception is considered to have escaped (or left) the scope of a span, - // if that span is ended while the exception is still logically "in - // flight". - // This may be actually "in flight" in some languages (e.g. if the - // exception - // is passed to a Context manager's __exit__ method in Python) but will - // usually be caught at the point of recording the exception in most languages.It - // is usually not possible to determine at the point where an exception is thrown - // whether it will escape the scope of a span. - // However, it is trivial to know that an exception - // will escape, if one checks for an active exception just before ending the span, - // as done in the example above.It follows that an exception may still escape the - // scope of the span - // even if the exception.escaped attribute was not set or set to false, - // since the event might have been recorded at a time where it was not - // clear whether the exception will escape. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionEscaped = "exception.escaped" -) - -// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. -const ( - // Type of the trigger on which the function is executed. - // - // Type: Enum - // Required: On FaaS instances, faas.trigger MUST be set on incoming invocations. - // Clients invoking FaaS instances MUST set `faas.trigger` on outgoing - // invocations, if it is known to the client. This is, for example, not the case, - // when the transport layer is abstracted in a FaaS client framework without - // access to its configuration. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTrigger = "faas.trigger" - // The execution ID of the current function execution. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSExecution = "faas.execution" -) - -const ( - // A response to some data source operation such as a database or filesystem read/write - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerDatasource = "datasource" - // To provide an answer to an inbound HTTP request - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerHTTP = "http" - // A function is set to be executed when messages are sent to a messaging system - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerPubsub = "pubsub" - // A function is scheduled to be executed regularly - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerTimer = "timer" - // If none of the others apply - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerOther = "other" -) - -// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. -const ( - // The name of the source on which the triggering operation was performed. For - // example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos - // DB to the database name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myBucketName', 'myDBName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentCollection = "faas.document.collection" - // Describes the type of the operation that was performed on the data. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperation = "faas.document.operation" - // A string containing the time when the data was accessed in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentTime = "faas.document.time" - // The document name/table subjected to the operation. For example, in Cloud - // Storage or S3 is the name of the file, and in Cosmos DB the table name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myFile.txt', 'myTableName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentName = "faas.document.name" -) - -const ( - // When a new object is created - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationInsert = "insert" - // When an object is modified - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationEdit = "edit" - // When an object is deleted - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationDelete = "delete" -) - -// Semantic Convention for FaaS scheduled to be executed regularly. -const ( - // A string containing the function invocation time in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTime = "faas.time" - // A string containing the schedule period as Cron Expression. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0/5 * * * ? *' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSCron = "faas.cron" -) - -// Contains additional attributes for incoming FaaS spans. -const ( - // A boolean that is true if the serverless function is executed for the first - // time (aka cold-start). - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSColdstart = "faas.coldstart" -) - -// Contains additional attributes for outgoing FaaS spans. -const ( - // The name of the invoked function. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: SHOULD be equal to the faas.name resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedName = "faas.invoked_name" - // The cloud provider of the invoked function. - // - // Type: Enum - // Required: Always - // Stability: stable - // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProvider = "faas.invoked_provider" - // The cloud region of the invoked function. - // - // Type: string - // Required: For some cloud providers, like AWS or GCP, the region in which a - // function is hosted is essential to uniquely identify the function and also part - // of its endpoint. Since it's part of the endpoint being called, the region is - // always known to clients. In these cases, `faas.invoked_region` MUST be set - // accordingly. If the region is unknown to the client or not required for - // identifying the invoked function, setting `faas.invoked_region` is optional. - // Stability: stable - // Examples: 'eu-central-1' - // Note: SHOULD be equal to the cloud.region resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedRegion = "faas.invoked_region" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderGCP = "gcp" -) - -// These attributes may be used for any network related operation. -const ( - // Transport protocol used. See note below. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransport = "net.transport" - // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) - // - // Type: string - // Required: No - // Stability: stable - // Examples: '127.0.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerIP = "net.peer.ip" - // Remote port number. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 80, 8080, 443 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerPort = "net.peer.port" - // Remote hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerName = "net.peer.name" - // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '192.168.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostIP = "net.host.ip" - // Like net.peer.port but for the host port. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 35555 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostPort = "net.host.port" - // Local hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'localhost' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostName = "net.host.name" - // The internet connection type currently being used by the host. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'wifi' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionType = "net.host.connection.type" - // This describes more details regarding the connection.type. It may be the type - // of cell technology connection, but it could be used for describing details - // about a wifi connection. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'LTE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtype = "net.host.connection.subtype" - // The name of the mobile carrier. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'sprint' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierName = "net.host.carrier.name" - // The mobile carrier country code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '310' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMcc = "net.host.carrier.mcc" - // The mobile carrier network code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '001' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMnc = "net.host.carrier.mnc" - // The ISO 3166-1 alpha-2 2-character country code associated with the mobile - // carrier network. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'DE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierIcc = "net.host.carrier.icc" -) - -const ( - // ip_tcp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportTCP = "ip_tcp" - // ip_udp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUDP = "ip_udp" - // Another IP-based protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportIP = "ip" - // Unix Domain socket. See below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUnix = "unix" - // Named or anonymous pipe. See note below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportPipe = "pipe" - // In-process communication - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportInProc = "inproc" - // Something else (non IP-based) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportOther = "other" -) - -const ( - // wifi - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWifi = "wifi" - // wired - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWired = "wired" - // cell - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeCell = "cell" - // unavailable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnavailable = "unavailable" - // unknown - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnknown = "unknown" -) - -const ( - // GPRS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGprs = "gprs" - // EDGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEdge = "edge" - // UMTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeUmts = "umts" - // CDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma = "cdma" - // EVDO Rel. 0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" - // EVDO Rev. A - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" - // CDMA2000 1XRTT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" - // HSDPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" - // HSUPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsupa = "hsupa" - // HSPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspa = "hspa" - // IDEN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIden = "iden" - // EVDO Rev. B - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" - // LTE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLte = "lte" - // EHRPD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" - // HSPAP - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspap = "hspap" - // GSM - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGsm = "gsm" - // TD-SCDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" - // IWLAN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIwlan = "iwlan" - // 5G NR (New Radio) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNr = "nr" - // 5G NRNSA (New Radio Non-Standalone) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" - // LTE CA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLteCa = "lte_ca" -) - -// Operations that access some remote service. -const ( - // The service.name of the remote service. SHOULD be equal to the actual - // service.name resource attribute of the remote service if any. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AuthTokenCache' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributePeerService = "peer.service" -) - -// These attributes may be used for any operation with an authenticated and/or authorized enduser. -const ( - // Username or client_id extracted from the access token or Authorization header - // in the inbound request from outside the system. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'username' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserID = "enduser.id" - // Actual/assumed role the client is making the request under extracted from token - // or application security context. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'admin' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserRole = "enduser.role" - // Scopes or granted authorities the client currently possesses extracted from - // token or application security context. The value would come from the scope - // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 - // Assertion. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'read:message, write:files' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserScope = "enduser.scope" -) - -// These attributes may be used for any operation to store information about a thread that started a span. -const ( - // Current "managed" thread ID (as opposed to OS thread ID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadID = "thread.id" - // Current thread name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'main' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadName = "thread.name" -) - -// These attributes allow to report this unit of code and therefore to provide more context about the span. -const ( - // The method or function name, or equivalent (usually rightmost part of the code - // unit's name). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'serveRequest' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFunction = "code.function" - // The "namespace" within which code.function is defined. Usually the - // qualified class or module name, such that code.namespace + some separator + - // code.function form a unique identifier for the code unit. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'com.example.MyHTTPService' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeNamespace = "code.namespace" - // The source code file name that identifies the code unit as uniquely as possible - // (preferably an absolute file path). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/usr/local/MyApplication/content_root/app/index.php' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFilepath = "code.filepath" - // The line number in code.filepath best representing the operation. It SHOULD - // point within the code unit named in code.function. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeLineNumber = "code.lineno" -) - -// This document defines semantic conventions for HTTP client and server Spans. -const ( - // HTTP request method. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'GET', 'POST', 'HEAD' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPMethod = "http.method" - // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. - // Usually the fragment is not transmitted over HTTP, but if it is known, it - // should be included nevertheless. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' - // Note: http.url MUST NOT contain credentials passed via URL in form of - // https://username:password@www.example.com/. In such case the attribute's value - // should be https://www.example.com/. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPURL = "http.url" - // The full request target as passed in a HTTP request line or equivalent. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/path/12314/?q=ddds#123' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPTarget = "http.target" - // The value of the HTTP host header. An empty Host header should also be - // reported, see note. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'www.example.org' - // Note: When the header is present but empty the attribute SHOULD be set to the - // empty string. Note that this is a valid situation that is expected in certain - // cases, according the aforementioned section of RFC 7230. When the header is not - // set the attribute MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPHost = "http.host" - // The URI scheme identifying the used protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'http', 'https' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPScheme = "http.scheme" - // HTTP response status code. - // - // Type: int - // Required: If and only if one was received/sent. - // Stability: stable - // Examples: 200 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPStatusCode = "http.status_code" - // Kind of HTTP protocol used. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: If net.transport is not specified, it can be assumed to be IP.TCP except - // if http.flavor is QUIC, in which case IP.UDP is assumed. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavor = "http.flavor" - // Value of the HTTP User-Agent header sent by the client. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPUserAgent = "http.user_agent" - // The size of the request payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLength = "http.request_content_length" - // The size of the uncompressed request payload body after transport decoding. Not - // set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" - // The size of the response payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLength = "http.response_content_length" - // The size of the uncompressed response payload body after transport decoding. - // Not set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" -) - -const ( - // HTTP 1.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP10 = "1.0" - // HTTP 1.1 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP11 = "1.1" - // HTTP 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP20 = "2.0" - // SPDY protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorSPDY = "SPDY" - // QUIC protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorQUIC = "QUIC" -) - -// Semantic Convention for HTTP Server -const ( - // The primary server name of the matched virtual host. This should be obtained - // via configuration. If no such configuration can be obtained, this attribute - // MUST NOT be set ( net.host.name should be used instead). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Note: http.url is usually not readily available on the server side but would - // have to be assembled in a cumbersome and sometimes lossy process from other - // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus - // preferred to supply the raw data that is available. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPServerName = "http.server_name" - // The matched route (path template). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/users/:userID?' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRoute = "http.route" - // The IP address of the original client behind all proxies, if known (e.g. from - // X-Forwarded-For). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '83.164.160.102' - // Note: This is not necessarily the same as net.peer.ip, which would - // identify the network-level peer, which may be a proxy.This attribute should be - // set when a source of information different - // from the one used for net.peer.ip, is available even if that other - // source just confirms the same value as net.peer.ip. - // Rationale: For net.peer.ip, one typically does not know if it - // comes from a proxy, reverse proxy, or the actual client. Setting - // http.client_ip when it's the same as net.peer.ip means that - // one is at least somewhat confident that the address is not that of - // the closest proxy. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPClientIP = "http.client_ip" -) - -// Attributes that exist for multiple DynamoDB request types. -const ( - // The keys in the RequestItems object field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'Users', 'Cats' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" - // The JSON-serialized value of each item in the ConsumedCapacity response field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { - // "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, - // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": - // "string", "WriteCapacityUnits": number }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" - // The JSON-serialized value of the ItemCollectionMetrics response field. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, - // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : - // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": - // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" - // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" - // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" - // The value of the ConsistentRead request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" - // The value of the ProjectionExpression request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, - // ProductReviews' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" - // The value of the Limit request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" - // The value of the AttributesToGet request parameter. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'lives', 'id' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" - // The value of the IndexName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'name_to_group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" - // The value of the Select request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ALL_ATTRIBUTES', 'COUNT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSelect = "aws.dynamodb.select" -) - -// DynamoDB.CreateTable -const ( - // The JSON-serialized value of each item of the GlobalSecondaryIndexes request - // field - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": - // number, "WriteCapacityUnits": number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" - // The JSON-serialized value of each item of the LocalSecondaryIndexes request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": - // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" -) - -// DynamoDB.ListTables -const ( - // The value of the ExclusiveStartTableName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Users', 'CatsTable' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" - // The the number of items in the TableNames response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 20 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" -) - -// DynamoDB.Query -const ( - // The value of the ScanIndexForward request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" -) - -// DynamoDB.Scan -const ( - // The value of the Segment request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" - // The value of the TotalSegments request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" - // The value of the Count response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBCount = "aws.dynamodb.count" - // The value of the ScannedCount response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 50 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" -) - -// DynamoDB.UpdateTable -const ( - // The JSON-serialized value of each item in the AttributeDefinitions request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" - // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates - // request field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { - // "AttributeName": "string", "KeyType": "string" } ], "Projection": { - // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, - // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" -) - -// This document defines the attributes used in messaging systems. -const ( - // A string identifying the messaging system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'kafka', 'rabbitmq', 'activemq', 'AmazonSQS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingSystem = "messaging.system" - // The message destination name. This might be equal to the span name but is - // required nevertheless. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'MyQueue', 'MyTopic' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestination = "messaging.destination" - // The kind of message destination - // - // Type: Enum - // Required: Required only if the message destination is either a `queue` or - // `topic`. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKind = "messaging.destination_kind" - // A boolean that is true if the message destination is temporary. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingTempDestination = "messaging.temp_destination" - // The name of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AMQP', 'MQTT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocol = "messaging.protocol" - // The version of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.9.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocolVersion = "messaging.protocol_version" - // Connection string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'tibjmsnaming://localhost:7222', - // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingURL = "messaging.url" - // A value used by the messaging system as an identifier for the message, - // represented as a string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '452a7c7c7c7048c2f887f61572b18fc2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessageID = "messaging.message_id" - // The conversation ID identifying the conversation to which the message belongs, - // represented as a string. Sometimes called "Correlation ID". - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MyConversationID' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConversationID = "messaging.conversation_id" - // The (uncompressed) size of the message payload in bytes. Also use this - // attribute if it is unknown whether the compressed or uncompressed payload size - // is reported. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2738 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" - // The compressed size of the message payload in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2048 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" -) - -const ( - // A message sent to a queue - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindQueue = "queue" - // A message sent to a topic - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindTopic = "topic" -) - -// Semantic convention for a consumer of messages received from a messaging system -const ( - // A string identifying the kind of message consumption as defined in the - // Operation names section above. If the operation is "send", this - // attribute MUST NOT be set, since the operation can be inferred from the span - // kind in that case. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperation = "messaging.operation" - // The identifier for the consumer receiving a message. For Kafka, set it to - // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are - // present, or only messaging.kafka.consumer_group. For brokers, such as RabbitMQ - // and Artemis, set it to the client_id of the client consuming the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'mygroup - client-6' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConsumerID = "messaging.consumer_id" -) - -const ( - // receive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationReceive = "receive" - // process - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationProcess = "process" -) - -// Attributes for RabbitMQ -const ( - // RabbitMQ message routing key. - // - // Type: string - // Required: Unless it is empty. - // Stability: stable - // Examples: 'myKey' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" -) - -// Attributes for Apache Kafka -const ( - // Message keys in Kafka are used for grouping alike messages to ensure they're - // processed on the same partition. They differ from messaging.message_id in that - // they're not unique. If the key is null, the attribute MUST NOT be set. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myKey' - // Note: If the key type is not string, it's string representation has to be - // supplied for the attribute. If the key has no unambiguous, canonical string - // form, don't include its value. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" - // Name of the Kafka Consumer Group that is handling the message. Only applies to - // consumers, not producers. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'my-group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" - // Client ID for the Consumer or Producer that is handling the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'client-5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaClientID = "messaging.kafka.client_id" - // Partition the message is sent to. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaPartition = "messaging.kafka.partition" - // A boolean that is true if the message is a tombstone. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" -) - -// This document defines semantic conventions for remote procedure calls. -const ( - // A string identifying the remoting system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'grpc', 'java_rmi', 'wcf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCSystem = "rpc.system" - // The full (logical) name of the service being called, including its package - // name, if applicable. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'myservice.EchoService' - // Note: This is the logical name of the service from the RPC interface - // perspective, which can be different from the name of any implementing class. - // The code.namespace attribute may be used to store the latter (despite the - // attribute name, it may include a class name; e.g., class with method actually - // executing the call on the server side, RPC client stub class on the client - // side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCService = "rpc.service" - // The name of the (logical) method being called, must be equal to the $method - // part in the span name. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'exampleMethod' - // Note: This is the logical name of the method from the RPC interface - // perspective, which can be different from the name of any implementing - // method/function. The code.function attribute may be used to store the latter - // (e.g., method actually executing the call on the server side, RPC client stub - // method on the client side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCMethod = "rpc.method" -) - -// Tech-specific attributes for gRPC. -const ( - // The numeric status code of the gRPC request. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" -) - -const ( - // OK - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOk = "0" - // CANCELLED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeCancelled = "1" - // UNKNOWN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnknown = "2" - // INVALID_ARGUMENT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInvalidArgument = "3" - // DEADLINE_EXCEEDED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" - // NOT_FOUND - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeNotFound = "5" - // ALREADY_EXISTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAlreadyExists = "6" - // PERMISSION_DENIED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodePermissionDenied = "7" - // RESOURCE_EXHAUSTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeResourceExhausted = "8" - // FAILED_PRECONDITION - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeFailedPrecondition = "9" - // ABORTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAborted = "10" - // OUT_OF_RANGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOutOfRange = "11" - // UNIMPLEMENTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnimplemented = "12" - // INTERNAL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInternal = "13" - // UNAVAILABLE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnavailable = "14" - // DATA_LOSS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDataLoss = "15" - // UNAUTHENTICATED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnauthenticated = "16" -) - -// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). -const ( - // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 - // does not specify this, the value can be omitted. - // - // Type: string - // Required: If missing, it is assumed to be "1.0". - // Stability: stable - // Examples: '2.0', '1.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" - // id property of request or response. Since protocol allows id to be int, string, - // null or missing (for notifications), value is expected to be cast to string for - // simplicity. Use empty string in case of null value. Omit entirely if this is a - // notification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '10', 'request-7', '' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" - // error.code property of response if it is an error response. - // - // Type: int - // Required: If missing, response is assumed to be successful. - // Stability: stable - // Examples: -32700, 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" - // error.message property of response if it is an error response. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Parse error', 'User already exists' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" -) - -// RPC received/sent message. -const ( - // Whether this is a received or sent message. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageType = "message.type" - // MUST be calculated as two different counters starting from 1 one for sent - // messages and one for received message. - // - // Type: int - // Required: No - // Stability: stable - // Note: This way we guarantee that the values will be consistent between - // different implementations. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageID = "message.id" - // Compressed size of the message in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageCompressedSize = "message.compressed_size" - // Uncompressed size of the message in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageUncompressedSize = "message.uncompressed_size" -) - -const ( - // sent - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageTypeSent = "SENT" - // received - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageTypeReceived = "RECEIVED" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetTraceSemanticConventionAttributeNames() []string { - return []string{ - AttributeAWSLambdaInvokedARN, - AttributeDBSystem, - AttributeDBConnectionString, - AttributeDBUser, - AttributeDBJDBCDriverClassname, - AttributeDBName, - AttributeDBStatement, - AttributeDBOperation, - AttributeDBMSSQLInstanceName, - AttributeDBCassandraKeyspace, - AttributeDBCassandraPageSize, - AttributeDBCassandraConsistencyLevel, - AttributeDBCassandraTable, - AttributeDBCassandraIdempotence, - AttributeDBCassandraSpeculativeExecutionCount, - AttributeDBCassandraCoordinatorID, - AttributeDBCassandraCoordinatorDC, - AttributeDBHBaseNamespace, - AttributeDBRedisDBIndex, - AttributeDBMongoDBCollection, - AttributeDBSQLTable, - AttributeExceptionType, - AttributeExceptionMessage, - AttributeExceptionStacktrace, - AttributeExceptionEscaped, - AttributeFaaSTrigger, - AttributeFaaSExecution, - AttributeFaaSDocumentCollection, - AttributeFaaSDocumentOperation, - AttributeFaaSDocumentTime, - AttributeFaaSDocumentName, - AttributeFaaSTime, - AttributeFaaSCron, - AttributeFaaSColdstart, - AttributeFaaSInvokedName, - AttributeFaaSInvokedProvider, - AttributeFaaSInvokedRegion, - AttributeNetTransport, - AttributeNetPeerIP, - AttributeNetPeerPort, - AttributeNetPeerName, - AttributeNetHostIP, - AttributeNetHostPort, - AttributeNetHostName, - AttributeNetHostConnectionType, - AttributeNetHostConnectionSubtype, - AttributeNetHostCarrierName, - AttributeNetHostCarrierMcc, - AttributeNetHostCarrierMnc, - AttributeNetHostCarrierIcc, - AttributePeerService, - AttributeEnduserID, - AttributeEnduserRole, - AttributeEnduserScope, - AttributeThreadID, - AttributeThreadName, - AttributeCodeFunction, - AttributeCodeNamespace, - AttributeCodeFilepath, - AttributeCodeLineNumber, - AttributeHTTPMethod, - AttributeHTTPURL, - AttributeHTTPTarget, - AttributeHTTPHost, - AttributeHTTPScheme, - AttributeHTTPStatusCode, - AttributeHTTPFlavor, - AttributeHTTPUserAgent, - AttributeHTTPRequestContentLength, - AttributeHTTPRequestContentLengthUncompressed, - AttributeHTTPResponseContentLength, - AttributeHTTPResponseContentLengthUncompressed, - AttributeHTTPServerName, - AttributeHTTPRoute, - AttributeHTTPClientIP, - AttributeAWSDynamoDBTableNames, - AttributeAWSDynamoDBConsumedCapacity, - AttributeAWSDynamoDBItemCollectionMetrics, - AttributeAWSDynamoDBProvisionedReadCapacity, - AttributeAWSDynamoDBProvisionedWriteCapacity, - AttributeAWSDynamoDBConsistentRead, - AttributeAWSDynamoDBProjection, - AttributeAWSDynamoDBLimit, - AttributeAWSDynamoDBAttributesToGet, - AttributeAWSDynamoDBIndexName, - AttributeAWSDynamoDBSelect, - AttributeAWSDynamoDBGlobalSecondaryIndexes, - AttributeAWSDynamoDBLocalSecondaryIndexes, - AttributeAWSDynamoDBExclusiveStartTable, - AttributeAWSDynamoDBTableCount, - AttributeAWSDynamoDBScanForward, - AttributeAWSDynamoDBSegment, - AttributeAWSDynamoDBTotalSegments, - AttributeAWSDynamoDBCount, - AttributeAWSDynamoDBScannedCount, - AttributeAWSDynamoDBAttributeDefinitions, - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, - AttributeMessagingSystem, - AttributeMessagingDestination, - AttributeMessagingDestinationKind, - AttributeMessagingTempDestination, - AttributeMessagingProtocol, - AttributeMessagingProtocolVersion, - AttributeMessagingURL, - AttributeMessagingMessageID, - AttributeMessagingConversationID, - AttributeMessagingMessagePayloadSizeBytes, - AttributeMessagingMessagePayloadCompressedSizeBytes, - AttributeMessagingOperation, - AttributeMessagingConsumerID, - AttributeMessagingRabbitmqRoutingKey, - AttributeMessagingKafkaMessageKey, - AttributeMessagingKafkaConsumerGroup, - AttributeMessagingKafkaClientID, - AttributeMessagingKafkaPartition, - AttributeMessagingKafkaTombstone, - AttributeRPCSystem, - AttributeRPCService, - AttributeRPCMethod, - AttributeRPCGRPCStatusCode, - AttributeRPCJsonrpcVersion, - AttributeRPCJsonrpcRequestID, - AttributeRPCJsonrpcErrorCode, - AttributeRPCJsonrpcErrorMessage, - AttributeMessageType, - AttributeMessageID, - AttributeMessageCompressedSize, - AttributeMessageUncompressedSize, - } -} diff --git a/model/semconv/v1.7.0/nonstandard.go b/model/semconv/v1.7.0/nonstandard.go deleted file mode 100644 index f69ecb4b1a7..00000000000 --- a/model/semconv/v1.7.0/nonstandard.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.7.0" - -const ( - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryName = "otel.library.name" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryVersion = "otel.library.version" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusCode = "otel.status_code" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusDescription = "otel.status_description" -) diff --git a/model/semconv/v1.7.0/schema.go b/model/semconv/v1.7.0/schema.go deleted file mode 100644 index 3b82066330c..00000000000 --- a/model/semconv/v1.7.0/schema.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.7.0" - -// SchemaURL is the schema URL that matches the version of the semantic conventions -// that this package defines. Conventions packages starting from v1.4.0 must declare -// non-empty schema URL in the form https://opentelemetry.io/schemas/ -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -const SchemaURL = "https://opentelemetry.io/schemas/1.7.0" diff --git a/model/semconv/v1.8.0/generated_resource.go b/model/semconv/v1.8.0/generated_resource.go deleted file mode 100644 index 21a69555cd2..00000000000 --- a/model/semconv/v1.8.0/generated_resource.go +++ /dev/null @@ -1,1168 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv - -// A cloud environment (e.g. GCP, Azure, AWS) -const ( - // Name of the cloud provider. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProvider = "cloud.provider" - // The cloud account ID the resource is assigned to. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '111111111111', 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAccountID = "cloud.account.id" - // The geographical region the resource is running. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-central1', 'us-east-1' - // Note: Refer to your provider's docs to see the available regions, for example - // Alibaba Cloud regions, AWS regions, Azure regions, Google Cloud regions, or - // Tencent Cloud regions. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudRegion = "cloud.region" - // Cloud regions often have multiple, isolated locations known as zones to - // increase availability. Availability zone represents the zone where the resource - // is running. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-east-1c' - // Note: Availability zones are called "zones" on Alibaba Cloud and - // Google Cloud. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAvailabilityZone = "cloud.availability_zone" - // The cloud platform in use. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: The prefix of the service SHOULD match the one specified in - // cloud.provider. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatform = "cloud.platform" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderGCP = "gcp" - // Tencent Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderTencentCloud = "tencent_cloud" -) - -const ( - // Alibaba Cloud Elastic Compute Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" - // Alibaba Cloud Function Compute - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" - // AWS Elastic Compute Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEC2 = "aws_ec2" - // AWS Elastic Container Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSECS = "aws_ecs" - // AWS Elastic Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEKS = "aws_eks" - // AWS Lambda - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSLambda = "aws_lambda" - // AWS Elastic Beanstalk - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" - // AWS App Runner - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSAppRunner = "aws_app_runner" - // Azure Virtual Machines - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureVM = "azure_vm" - // Azure Container Instances - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" - // Azure Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAKS = "azure_aks" - // Azure Functions - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureFunctions = "azure_functions" - // Azure App Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAppService = "azure_app_service" - // Google Cloud Compute Engine (GCE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" - // Google Cloud Run - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" - // Google Cloud Kubernetes Engine (GKE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" - // Google Cloud Functions (GCF) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" - // Google Cloud App Engine (GAE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" - // Tencent Cloud Cloud Virtual Machine (CVM) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformTencentCloudCvm = "tencent_cloud_cvm" - // Tencent Cloud Elastic Kubernetes Service (EKS) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformTencentCloudEKS = "tencent_cloud_eks" - // Tencent Cloud Serverless Cloud Function (SCF) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformTencentCloudScf = "tencent_cloud_scf" -) - -// Resources used by AWS Elastic Container Service (ECS). -const ( - // The Amazon Resource Name (ARN) of an ECS container instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSContainerARN = "aws.ecs.container.arn" - // The ARN of an ECS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" - // The launch type for an ECS task. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtype = "aws.ecs.launchtype" - // The ARN of an ECS task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskARN = "aws.ecs.task.arn" - // The task definition family this task definition is a member of. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-family' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskFamily = "aws.ecs.task.family" - // The revision for this task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '8', '26' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskRevision = "aws.ecs.task.revision" -) - -const ( - // ec2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeEC2 = "ec2" - // fargate - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeFargate = "fargate" -) - -// Resources used by AWS Elastic Kubernetes Service (EKS). -const ( - // The ARN of an EKS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" -) - -// Resources specific to Amazon Web Services. -const ( - // The name(s) of the AWS log group(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '/aws/lambda/my-function', 'opentelemetry-service' - // Note: Multiple log groups must be supported for cases like multi-container - // applications, where a single application has sidecar containers, and each write - // to their own log group. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupNames = "aws.log.group.names" - // The Amazon Resource Name(s) (ARN) of the AWS log group(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' - // Note: See the log group ARN format documentation. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupARNs = "aws.log.group.arns" - // The name(s) of the AWS log stream(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamNames = "aws.log.stream.names" - // The ARN(s) of the AWS log stream(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log- - // stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Note: See the log stream ARN format documentation. One log group can contain - // several log streams, so these ARNs necessarily identify both a log group and a - // log stream. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamARNs = "aws.log.stream.arns" -) - -// A container instance. -const ( - // Container name used by container runtime. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerName = "container.name" - // Container ID. Usually a UUID, as for example used to identify Docker - // containers. The UUID might be abbreviated. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'a3bf90e006b2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerID = "container.id" - // The container runtime managing this container. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'docker', 'containerd', 'rkt' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerRuntime = "container.runtime" - // Name of the image the container was built on. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'gcr.io/opentelemetry/operator' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageName = "container.image.name" - // Container image tag. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageTag = "container.image.tag" -) - -// The software deployment. -const ( - // Name of the deployment environment (aka deployment tier). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'staging', 'production' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeploymentEnvironment = "deployment.environment" -) - -// The device on which the process represented by this resource is running. -const ( - // A unique identifier representing the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2ab2916d-a51f-4ac8-80ee-45ac31a28092' - // Note: The device identifier MUST only be defined using the values outlined - // below. This value is not an advertising identifier and MUST NOT be used as - // such. On iOS (Swift or Objective-C), this value MUST be equal to the vendor - // identifier. On Android (Java or Kotlin), this value MUST be equal to the - // Firebase Installation ID or a globally unique UUID which is persisted across - // sessions in your application. More information can be found here on best - // practices and exact implementation details. Caution should be taken when - // storing personal data or anything which can identify a user. GDPR and data - // protection laws may apply, ensure you do your own due diligence. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceID = "device.id" - // The model identifier for the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone3,4', 'SM-G920F' - // Note: It's recommended this value represents a machine readable version of the - // model identifier rather than the market or consumer-friendly name of the - // device. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelIdentifier = "device.model.identifier" - // The marketing name for the device model - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone 6s Plus', 'Samsung Galaxy S6' - // Note: It's recommended this value represents a human readable version of the - // device model rather than a machine readable alternative. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelName = "device.model.name" -) - -// A serverless instance. -const ( - // The name of the single function that this runtime instance executes. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: This is the name of the function as configured/deployed on the FaaS - // platform and is usually different from the name of the callback function (which - // may be stored in the code.namespace/code.function span attributes). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSName = "faas.name" - // The unique ID of the single function that this runtime instance executes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' - // Note: Depending on the cloud provider, use:
    - //
  • AWS Lambda: The function ARN.
  • - //
- // Take care not to use the "invoked ARN" directly but replace any - // alias suffix with the resolved function version, as the same runtime instance - // may be invokable with multiple - // different aliases.
    - //
  • GCP: The URI of the resource
  • - //
  • Azure: The Fully Qualified Resource ID.
  • - //
- // On some providers, it may not be possible to determine the full ID at startup, - // which is why this field cannot be made required. For example, on AWS the - // account ID - // part of the ARN is not available without calling another AWS API - // which may be deemed too slow for a short-running lambda function. - // As an alternative, consider setting faas.id as a span attribute instead. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSID = "faas.id" - // The immutable version of the function being executed. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '26', 'pinkfroid-00002' - // Note: Depending on the cloud provider and platform, use:
    - //
  • AWS Lambda: The function version - // (an integer represented as a decimal string).
  • - //
  • Google Cloud Run: The revision - // (i.e., the function name plus the revision suffix).
  • - //
  • Google Cloud Functions: The value of the - // K_REVISION environment variable.
  • - //
  • Azure Functions: Not applicable. Do not set this attribute.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSVersion = "faas.version" - // The execution environment ID as a string, that will be potentially reused for - // other invocations to the same function/function version. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' - // Note:
    - //
  • AWS Lambda: Use the (full) log stream name.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInstance = "faas.instance" - // The amount of memory available to the serverless function in MiB. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 128 - // Note: It's recommended to set this attribute since e.g. too little memory can - // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, - // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this - // information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSMaxMemory = "faas.max_memory" -) - -// A host is defined as a general computing instance. -const ( - // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud - // provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostID = "host.id" - // Name of the host. On Unix systems, it may contain what the hostname command - // returns, or the fully qualified hostname, or another name specified by the - // user. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostName = "host.name" - // Type of host. For Cloud, this must be the machine type. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'n1-standard-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostType = "host.type" - // The CPU architecture the host system is running on. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArch = "host.arch" - // Name of the VM image or OS install the host was instantiated from. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageName = "host.image.name" - // VM image ID. For Cloud, this value is from the provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ami-07b06b442921831e5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageID = "host.image.id" - // The version string of the VM image as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageVersion = "host.image.version" -) - -const ( - // AMD64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchAMD64 = "amd64" - // ARM32 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM32 = "arm32" - // ARM64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM64 = "arm64" - // Itanium - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchIA64 = "ia64" - // 32-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC32 = "ppc32" - // 64-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC64 = "ppc64" - // IBM z/Architecture - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchS390x = "s390x" - // 32-bit x86 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchX86 = "x86" -) - -// A Kubernetes Cluster. -const ( - // The name of the cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SClusterName = "k8s.cluster.name" -) - -// A Kubernetes Node object. -const ( - // The name of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'node-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeName = "k8s.node.name" - // The UID of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeUID = "k8s.node.uid" -) - -// A Kubernetes Namespace. -const ( - // The name of the namespace that the pod is running in. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNamespaceName = "k8s.namespace.name" -) - -// A Kubernetes Pod object. -const ( - // The UID of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodUID = "k8s.pod.uid" - // The name of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-pod-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodName = "k8s.pod.name" -) - -// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). -const ( - // The name of the Container from Pod specification, must be unique within a Pod. - // Container runtime usually uses different globally unique name (container.name). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'redis' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SContainerName = "k8s.container.name" - // Number of times the container was restarted. This attribute can be used to - // identify a particular container (running or stopped) within a container spec. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 0, 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SContainerRestartCount = "k8s.container.restart_count" -) - -// A Kubernetes ReplicaSet object. -const ( - // The UID of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetUID = "k8s.replicaset.uid" - // The name of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetName = "k8s.replicaset.name" -) - -// A Kubernetes Deployment object. -const ( - // The UID of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentUID = "k8s.deployment.uid" - // The name of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentName = "k8s.deployment.name" -) - -// A Kubernetes StatefulSet object. -const ( - // The UID of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetUID = "k8s.statefulset.uid" - // The name of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetName = "k8s.statefulset.name" -) - -// A Kubernetes DaemonSet object. -const ( - // The UID of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetUID = "k8s.daemonset.uid" - // The name of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetName = "k8s.daemonset.name" -) - -// A Kubernetes Job object. -const ( - // The UID of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobUID = "k8s.job.uid" - // The name of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobName = "k8s.job.name" -) - -// A Kubernetes CronJob object. -const ( - // The UID of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobUID = "k8s.cronjob.uid" - // The name of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobName = "k8s.cronjob.name" -) - -// The operating system (OS) on which the process represented by this resource is running. -const ( - // The operating system type. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSType = "os.type" - // Human readable (not intended to be parsed) OS version information, like e.g. - // reported by ver or lsb_release -a commands. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSDescription = "os.description" - // Human readable operating system name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iOS', 'Android', 'Ubuntu' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSName = "os.name" - // The version string of the operating system as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.2.1', '18.04.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSVersion = "os.version" -) - -const ( - // Microsoft Windows - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeWindows = "windows" - // Linux - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeLinux = "linux" - // Apple Darwin - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDarwin = "darwin" - // FreeBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeFreeBSD = "freebsd" - // NetBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeNetBSD = "netbsd" - // OpenBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeOpenBSD = "openbsd" - // DragonFly BSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDragonflyBSD = "dragonflybsd" - // HP-UX (Hewlett Packard Unix) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeHPUX = "hpux" - // AIX (Advanced Interactive eXecutive) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeAIX = "aix" - // Oracle Solaris - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeSolaris = "solaris" - // IBM z/OS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeZOS = "z_os" -) - -// An operating system process. -const ( - // Process identifier (PID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 1234 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessPID = "process.pid" - // The name of the process executable. On Linux based systems, can be set to the - // Name in proc/[pid]/status. On Windows, can be set to the base name of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutableName = "process.executable.name" - // The full path to the process executable. On Linux based systems, can be set to - // the target of proc/[pid]/exe. On Windows, can be set to the result of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: '/usr/bin/cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutablePath = "process.executable.path" - // The command used to launch the process (i.e. the command name). On Linux based - // systems, can be set to the zeroth string in proc/[pid]/cmdline. On Windows, can - // be set to the first parameter extracted from GetCommandLineW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommand = "process.command" - // The full command used to launch the process as a single string representing the - // full command. On Windows, can be set to the result of GetCommandLineW. Do not - // set this if you have to assemble it just for monitoring; use - // process.command_args instead. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandLine = "process.command_line" - // All the command arguments (including the command/executable itself) as received - // by the process. On Linux-based systems (and some other Unixoid systems - // supporting procfs), can be set according to the list of null-delimited strings - // extracted from proc/[pid]/cmdline. For libc-based executables, this would be - // the full argv vector passed to main. - // - // Type: string[] - // Required: See below - // Stability: stable - // Examples: 'cmd/otecol', '--config=config.yaml' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandArgs = "process.command_args" - // The username of the user that owns the process. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'root' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessOwner = "process.owner" -) - -// The single (language) runtime instance which is monitored. -const ( - // The name of the runtime of this process. For compiled native binaries, this - // SHOULD be the name of the compiler. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'OpenJDK Runtime Environment' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeName = "process.runtime.name" - // The version of the runtime of this process, as returned by the runtime without - // modification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.0.2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeVersion = "process.runtime.version" - // An additional description about the runtime of the process, for example a - // specific vendor customization of the runtime environment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeDescription = "process.runtime.description" -) - -// A service instance. -const ( - // Logical name of the service. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'shoppingcart' - // Note: MUST be the same for all instances of horizontally scaled services. If - // the value was not specified, SDKs MUST fallback to unknown_service: - // concatenated with process.executable.name, e.g. unknown_service:bash. If - // process.executable.name is not available, the value MUST be set to - // unknown_service. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceName = "service.name" - // A namespace for service.name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Shop' - // Note: A string value having a meaning that helps to distinguish a group of - // services, for example the team name that owns a group of services. service.name - // is expected to be unique within the same namespace. If service.namespace is not - // specified in the Resource then service.name is expected to be unique for all - // services that have no explicit namespace defined (so the empty/unspecified - // namespace is simply one more valid namespace). Zero-length namespace string is - // assumed equal to unspecified namespace. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceNamespace = "service.namespace" - // The string ID of the service instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '627cc493-f310-47de-96bd-71410b7dec09' - // Note: MUST be unique for each instance of the same - // service.namespace,service.name pair (in other words - // service.namespace,service.name,service.instance.id triplet MUST be globally - // unique). The ID helps to distinguish instances of the same service that exist - // at the same time (e.g. instances of a horizontally scaled service). It is - // preferable for the ID to be persistent and stay the same for the lifetime of - // the service instance, however it is acceptable that the ID is ephemeral and - // changes during important lifetime events for the service (e.g. service - // restarts). If the service has no inherent unique ID that can be used as the - // value of this attribute it is recommended to generate a random Version 1 or - // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use - // Version 5, see RFC 4122 for more recommendations). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceInstanceID = "service.instance.id" - // The version string of the service API or implementation. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceVersion = "service.version" -) - -// The telemetry SDK used to capture data recorded by the instrumentation libraries. -const ( - // The name of the telemetry SDK as defined above. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKName = "telemetry.sdk.name" - // The language of the telemetry SDK. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguage = "telemetry.sdk.language" - // The version string of the telemetry SDK. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKVersion = "telemetry.sdk.version" - // The version string of the auto instrumentation agent, if used. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetryAutoVersion = "telemetry.auto.version" -) - -const ( - // cpp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageCPP = "cpp" - // dotnet - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageDotnet = "dotnet" - // erlang - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageErlang = "erlang" - // go - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageGo = "go" - // java - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageJava = "java" - // nodejs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageNodejs = "nodejs" - // php - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePHP = "php" - // python - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePython = "python" - // ruby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageRuby = "ruby" - // webjs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageWebjs = "webjs" - // swift - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageSwift = "swift" -) - -// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. -const ( - // The name of the web engine. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'WildFly' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineName = "webengine.name" - // The version of the web engine. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '21.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineVersion = "webengine.version" - // Additional description of the web engine (e.g. detailed version and edition - // information). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineDescription = "webengine.description" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetResourceSemanticConventionAttributeNames() []string { - return []string{ - AttributeCloudProvider, - AttributeCloudAccountID, - AttributeCloudRegion, - AttributeCloudAvailabilityZone, - AttributeCloudPlatform, - AttributeAWSECSContainerARN, - AttributeAWSECSClusterARN, - AttributeAWSECSLaunchtype, - AttributeAWSECSTaskARN, - AttributeAWSECSTaskFamily, - AttributeAWSECSTaskRevision, - AttributeAWSEKSClusterARN, - AttributeAWSLogGroupNames, - AttributeAWSLogGroupARNs, - AttributeAWSLogStreamNames, - AttributeAWSLogStreamARNs, - AttributeContainerName, - AttributeContainerID, - AttributeContainerRuntime, - AttributeContainerImageName, - AttributeContainerImageTag, - AttributeDeploymentEnvironment, - AttributeDeviceID, - AttributeDeviceModelIdentifier, - AttributeDeviceModelName, - AttributeFaaSName, - AttributeFaaSID, - AttributeFaaSVersion, - AttributeFaaSInstance, - AttributeFaaSMaxMemory, - AttributeHostID, - AttributeHostName, - AttributeHostType, - AttributeHostArch, - AttributeHostImageName, - AttributeHostImageID, - AttributeHostImageVersion, - AttributeK8SClusterName, - AttributeK8SNodeName, - AttributeK8SNodeUID, - AttributeK8SNamespaceName, - AttributeK8SPodUID, - AttributeK8SPodName, - AttributeK8SContainerName, - AttributeK8SContainerRestartCount, - AttributeK8SReplicaSetUID, - AttributeK8SReplicaSetName, - AttributeK8SDeploymentUID, - AttributeK8SDeploymentName, - AttributeK8SStatefulSetUID, - AttributeK8SStatefulSetName, - AttributeK8SDaemonSetUID, - AttributeK8SDaemonSetName, - AttributeK8SJobUID, - AttributeK8SJobName, - AttributeK8SCronJobUID, - AttributeK8SCronJobName, - AttributeOSType, - AttributeOSDescription, - AttributeOSName, - AttributeOSVersion, - AttributeProcessPID, - AttributeProcessExecutableName, - AttributeProcessExecutablePath, - AttributeProcessCommand, - AttributeProcessCommandLine, - AttributeProcessCommandArgs, - AttributeProcessOwner, - AttributeProcessRuntimeName, - AttributeProcessRuntimeVersion, - AttributeProcessRuntimeDescription, - AttributeServiceName, - AttributeServiceNamespace, - AttributeServiceInstanceID, - AttributeServiceVersion, - AttributeTelemetrySDKName, - AttributeTelemetrySDKLanguage, - AttributeTelemetrySDKVersion, - AttributeTelemetryAutoVersion, - AttributeWebEngineName, - AttributeWebEngineVersion, - AttributeWebEngineDescription, - } -} diff --git a/model/semconv/v1.8.0/generated_trace.go b/model/semconv/v1.8.0/generated_trace.go deleted file mode 100644 index 42b11a0e1f4..00000000000 --- a/model/semconv/v1.8.0/generated_trace.go +++ /dev/null @@ -1,1999 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv - -// Span attributes used by AWS Lambda (in addition to general `faas` attributes). -const ( - // The full invoked ARN as provided on the Context passed to the function (Lambda- - // Runtime-Invoked-Function-ARN header on the /runtime/invocation/next - // applicable). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' - // Note: This may be different from faas.id if an alias is involved. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" -) - -// This document defines the attributes used to perform database client calls. -const ( - // An identifier for the database management system (DBMS) product being used. See - // below for a list of well-known identifiers. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystem = "db.system" - // The connection string used to connect to the database. It is recommended to - // remove embedded credentials. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBConnectionString = "db.connection_string" - // Username for accessing the database. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'readonly_user', 'reporting_user' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBUser = "db.user" - // The fully-qualified class name of the Java Database Connectivity (JDBC) driver - // used to connect. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'org.postgresql.Driver', - // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" - // This attribute is used to report the name of the database being accessed. For - // commands that switch the database, this should be set to the target database - // (even if the command fails). - // - // Type: string - // Required: Required, if applicable. - // Stability: stable - // Examples: 'customers', 'main' - // Note: In some SQL databases, the database name to be used is called - // "schema name". In case there are multiple layers that could be - // considered for database name (e.g. Oracle instance name and schema name), the - // database name to be used is the more specific layer (e.g. Oracle schema name). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBName = "db.name" - // The database statement being executed. - // - // Type: string - // Required: Required if applicable and not explicitly disabled via - // instrumentation configuration. - // Stability: stable - // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' - // Note: The value may be sanitized to exclude sensitive information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBStatement = "db.statement" - // The name of the operation being executed, e.g. the MongoDB command name such as - // findAndModify, or the SQL keyword. - // - // Type: string - // Required: Required, if `db.statement` is not applicable. - // Stability: stable - // Examples: 'findAndModify', 'HMSET', 'SELECT' - // Note: When setting this to an SQL keyword, it is not recommended to attempt any - // client-side parsing of db.statement just to get this property, but it should be - // set if the operation name is provided by the library being instrumented. If the - // SQL statement has an ambiguous operation, or performs more than one operation, - // this value may be omitted. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBOperation = "db.operation" -) - -const ( - // Some other SQL database. Fallback only. See notes - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOtherSQL = "other_sql" - // Microsoft SQL Server - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMSSQL = "mssql" - // MySQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMySQL = "mysql" - // Oracle Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOracle = "oracle" - // IBM DB2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDB2 = "db2" - // PostgreSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPostgreSQL = "postgresql" - // Amazon Redshift - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedshift = "redshift" - // Apache Hive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHive = "hive" - // Cloudscape - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCloudscape = "cloudscape" - // HyperSQL DataBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHSQLDB = "hsqldb" - // Progress Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemProgress = "progress" - // SAP MaxDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMaxDB = "maxdb" - // SAP HANA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHanaDB = "hanadb" - // Ingres - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemIngres = "ingres" - // FirstSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirstSQL = "firstsql" - // EnterpriseDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemEDB = "edb" - // InterSystems Caché - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCache = "cache" - // Adabas (Adaptable Database System) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemAdabas = "adabas" - // Firebird - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirebird = "firebird" - // Apache Derby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDerby = "derby" - // FileMaker - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFilemaker = "filemaker" - // Informix - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInformix = "informix" - // InstantDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInstantDB = "instantdb" - // InterBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInterbase = "interbase" - // MariaDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMariaDB = "mariadb" - // Netezza - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNetezza = "netezza" - // Pervasive PSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPervasive = "pervasive" - // PointBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPointbase = "pointbase" - // SQLite - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSqlite = "sqlite" - // Sybase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSybase = "sybase" - // Teradata - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemTeradata = "teradata" - // Vertica - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemVertica = "vertica" - // H2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemH2 = "h2" - // ColdFusion IMQ - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemColdfusion = "coldfusion" - // Apache Cassandra - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCassandra = "cassandra" - // Apache HBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHBase = "hbase" - // MongoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMongoDB = "mongodb" - // Redis - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedis = "redis" - // Couchbase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchbase = "couchbase" - // CouchDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchDB = "couchdb" - // Microsoft Azure Cosmos DB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCosmosDB = "cosmosdb" - // Amazon DynamoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDynamoDB = "dynamodb" - // Neo4j - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNeo4j = "neo4j" - // Apache Geode - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemGeode = "geode" - // Elasticsearch - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemElasticsearch = "elasticsearch" - // Memcached - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMemcached = "memcached" - // CockroachDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCockroachdb = "cockroachdb" -) - -// Connection-level attributes for Microsoft SQL Server -const ( - // The Microsoft SQL Server instance name connecting to. This name is used to - // determine the port of a named instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MSSQLSERVER' - // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required - // (but still recommended if non-standard). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMSSQLInstanceName = "db.mssql.instance_name" -) - -// Call-level attributes for Cassandra -const ( - // The fetch size used for paging, i.e. how many rows will be returned at once. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5000 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraPageSize = "db.cassandra.page_size" - // The consistency level of the query. Based on consistency values from CQL. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" - // The name of the primary table that the operation is acting upon, including the - // keyspace name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'mytable' - // Note: This mirrors the db.sql.table attribute but references cassandra rather - // than sql. It is not recommended to attempt any client-side parsing of - // db.statement just to get this property, but it should be set if it is provided - // by the library being instrumented. If the operation is acting upon an anonymous - // table, or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraTable = "db.cassandra.table" - // Whether or not the query is idempotent. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraIdempotence = "db.cassandra.idempotence" - // The number of times a query was speculatively executed. Not set or 0 if the - // query was not executed speculatively. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 0, 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" - // The ID of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" - // The data center of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-west-2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" -) - -const ( - // all - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAll = "all" - // each_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" - // quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelQuorum = "quorum" - // local_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" - // one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelOne = "one" - // two - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelTwo = "two" - // three - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelThree = "three" - // local_one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalOne = "local_one" - // any - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAny = "any" - // serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelSerial = "serial" - // local_serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" -) - -// Call-level attributes for Redis -const ( - // The index of the database being accessed as used in the SELECT command, - // provided as an integer. To be used instead of the generic db.name attribute. - // - // Type: int - // Required: Required, if other than the default database (`0`). - // Stability: stable - // Examples: 0, 1, 15 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBRedisDBIndex = "db.redis.database_index" -) - -// Call-level attributes for MongoDB -const ( - // The collection being accessed within the database stated in db.name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'customers', 'products' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMongoDBCollection = "db.mongodb.collection" -) - -// Call-level attributes for SQL databases -const ( - // The name of the primary table that the operation is acting upon, including the - // database name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'public.users', 'customers' - // Note: It is not recommended to attempt any client-side parsing of db.statement - // just to get this property, but it should be set if it is provided by the - // library being instrumented. If the operation is acting upon an anonymous table, - // or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSQLTable = "db.sql.table" -) - -// This document defines the attributes used to report a single exception associated with a span. -const ( - // The type of the exception (its fully-qualified class name, if applicable). The - // dynamic type of the exception should be preferred over the static type in - // languages that support it. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'java.net.ConnectException', 'OSError' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionType = "exception.type" - // The exception message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionMessage = "exception.message" - // A stacktrace as a string in the natural representation for the language - // runtime. The representation is to be determined and documented by each language - // SIG. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Exception in thread "main" java.lang.RuntimeException: Test - // exception\\n at ' - // 'com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at ' - // 'com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at ' - // 'com.example.GenerateTrace.main(GenerateTrace.java:5)' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionStacktrace = "exception.stacktrace" - // SHOULD be set to true if the exception event is recorded at a point where it is - // known that the exception is escaping the scope of the span. - // - // Type: boolean - // Required: No - // Stability: stable - // Note: An exception is considered to have escaped (or left) the scope of a span, - // if that span is ended while the exception is still logically "in - // flight". - // This may be actually "in flight" in some languages (e.g. if the - // exception - // is passed to a Context manager's __exit__ method in Python) but will - // usually be caught at the point of recording the exception in most languages.It - // is usually not possible to determine at the point where an exception is thrown - // whether it will escape the scope of a span. - // However, it is trivial to know that an exception - // will escape, if one checks for an active exception just before ending the span, - // as done in the example above.It follows that an exception may still escape the - // scope of the span - // even if the exception.escaped attribute was not set or set to false, - // since the event might have been recorded at a time where it was not - // clear whether the exception will escape. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionEscaped = "exception.escaped" -) - -// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. -const ( - // Type of the trigger which caused this function execution. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: For the server/consumer span on the incoming side, - // faas.trigger MUST be set.Clients invoking FaaS instances usually cannot set - // faas.trigger, - // since they would typically need to look in the payload to determine - // the event type. If clients set it, it should be the same as the - // trigger that corresponding incoming would have (i.e., this has - // nothing to do with the underlying transport used to make the API - // call to invoke the lambda, which is often HTTP). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTrigger = "faas.trigger" - // The execution ID of the current function execution. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSExecution = "faas.execution" -) - -const ( - // A response to some data source operation such as a database or filesystem read/write - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerDatasource = "datasource" - // To provide an answer to an inbound HTTP request - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerHTTP = "http" - // A function is set to be executed when messages are sent to a messaging system - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerPubsub = "pubsub" - // A function is scheduled to be executed regularly - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerTimer = "timer" - // If none of the others apply - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerOther = "other" -) - -// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. -const ( - // The name of the source on which the triggering operation was performed. For - // example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos - // DB to the database name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myBucketName', 'myDBName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentCollection = "faas.document.collection" - // Describes the type of the operation that was performed on the data. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperation = "faas.document.operation" - // A string containing the time when the data was accessed in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentTime = "faas.document.time" - // The document name/table subjected to the operation. For example, in Cloud - // Storage or S3 is the name of the file, and in Cosmos DB the table name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myFile.txt', 'myTableName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentName = "faas.document.name" -) - -const ( - // When a new object is created - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationInsert = "insert" - // When an object is modified - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationEdit = "edit" - // When an object is deleted - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationDelete = "delete" -) - -// Semantic Convention for FaaS scheduled to be executed regularly. -const ( - // A string containing the function invocation time in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTime = "faas.time" - // A string containing the schedule period as Cron Expression. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0/5 * * * ? *' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSCron = "faas.cron" -) - -// Contains additional attributes for incoming FaaS spans. -const ( - // A boolean that is true if the serverless function is executed for the first - // time (aka cold-start). - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSColdstart = "faas.coldstart" -) - -// Contains additional attributes for outgoing FaaS spans. -const ( - // The name of the invoked function. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: SHOULD be equal to the faas.name resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedName = "faas.invoked_name" - // The cloud provider of the invoked function. - // - // Type: Enum - // Required: Always - // Stability: stable - // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProvider = "faas.invoked_provider" - // The cloud region of the invoked function. - // - // Type: string - // Required: For some cloud providers, like AWS or GCP, the region in which a - // function is hosted is essential to uniquely identify the function and also part - // of its endpoint. Since it's part of the endpoint being called, the region is - // always known to clients. In these cases, `faas.invoked_region` MUST be set - // accordingly. If the region is unknown to the client or not required for - // identifying the invoked function, setting `faas.invoked_region` is optional. - // Stability: stable - // Examples: 'eu-central-1' - // Note: SHOULD be equal to the cloud.region resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedRegion = "faas.invoked_region" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderGCP = "gcp" - // Tencent Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderTencentCloud = "tencent_cloud" -) - -// These attributes may be used for any network related operation. -const ( - // Transport protocol used. See note below. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransport = "net.transport" - // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) - // - // Type: string - // Required: No - // Stability: stable - // Examples: '127.0.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerIP = "net.peer.ip" - // Remote port number. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 80, 8080, 443 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerPort = "net.peer.port" - // Remote hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerName = "net.peer.name" - // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '192.168.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostIP = "net.host.ip" - // Like net.peer.port but for the host port. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 35555 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostPort = "net.host.port" - // Local hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'localhost' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostName = "net.host.name" - // The internet connection type currently being used by the host. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'wifi' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionType = "net.host.connection.type" - // This describes more details regarding the connection.type. It may be the type - // of cell technology connection, but it could be used for describing details - // about a wifi connection. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'LTE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtype = "net.host.connection.subtype" - // The name of the mobile carrier. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'sprint' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierName = "net.host.carrier.name" - // The mobile carrier country code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '310' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMcc = "net.host.carrier.mcc" - // The mobile carrier network code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '001' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMnc = "net.host.carrier.mnc" - // The ISO 3166-1 alpha-2 2-character country code associated with the mobile - // carrier network. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'DE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierIcc = "net.host.carrier.icc" -) - -const ( - // ip_tcp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportTCP = "ip_tcp" - // ip_udp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUDP = "ip_udp" - // Another IP-based protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportIP = "ip" - // Unix Domain socket. See below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUnix = "unix" - // Named or anonymous pipe. See note below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportPipe = "pipe" - // In-process communication - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportInProc = "inproc" - // Something else (non IP-based) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportOther = "other" -) - -const ( - // wifi - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWifi = "wifi" - // wired - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWired = "wired" - // cell - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeCell = "cell" - // unavailable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnavailable = "unavailable" - // unknown - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnknown = "unknown" -) - -const ( - // GPRS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGprs = "gprs" - // EDGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEdge = "edge" - // UMTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeUmts = "umts" - // CDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma = "cdma" - // EVDO Rel. 0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" - // EVDO Rev. A - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" - // CDMA2000 1XRTT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" - // HSDPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" - // HSUPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsupa = "hsupa" - // HSPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspa = "hspa" - // IDEN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIden = "iden" - // EVDO Rev. B - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" - // LTE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLte = "lte" - // EHRPD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" - // HSPAP - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspap = "hspap" - // GSM - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGsm = "gsm" - // TD-SCDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" - // IWLAN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIwlan = "iwlan" - // 5G NR (New Radio) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNr = "nr" - // 5G NRNSA (New Radio Non-Standalone) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" - // LTE CA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLteCa = "lte_ca" -) - -// Operations that access some remote service. -const ( - // The service.name of the remote service. SHOULD be equal to the actual - // service.name resource attribute of the remote service if any. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AuthTokenCache' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributePeerService = "peer.service" -) - -// These attributes may be used for any operation with an authenticated and/or authorized enduser. -const ( - // Username or client_id extracted from the access token or Authorization header - // in the inbound request from outside the system. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'username' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserID = "enduser.id" - // Actual/assumed role the client is making the request under extracted from token - // or application security context. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'admin' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserRole = "enduser.role" - // Scopes or granted authorities the client currently possesses extracted from - // token or application security context. The value would come from the scope - // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 - // Assertion. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'read:message, write:files' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserScope = "enduser.scope" -) - -// These attributes may be used for any operation to store information about a thread that started a span. -const ( - // Current "managed" thread ID (as opposed to OS thread ID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadID = "thread.id" - // Current thread name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'main' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadName = "thread.name" -) - -// These attributes allow to report this unit of code and therefore to provide more context about the span. -const ( - // The method or function name, or equivalent (usually rightmost part of the code - // unit's name). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'serveRequest' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFunction = "code.function" - // The "namespace" within which code.function is defined. Usually the - // qualified class or module name, such that code.namespace + some separator + - // code.function form a unique identifier for the code unit. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'com.example.MyHTTPService' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeNamespace = "code.namespace" - // The source code file name that identifies the code unit as uniquely as possible - // (preferably an absolute file path). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/usr/local/MyApplication/content_root/app/index.php' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFilepath = "code.filepath" - // The line number in code.filepath best representing the operation. It SHOULD - // point within the code unit named in code.function. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeLineNumber = "code.lineno" -) - -// This document defines semantic conventions for HTTP client and server Spans. -const ( - // HTTP request method. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'GET', 'POST', 'HEAD' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPMethod = "http.method" - // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. - // Usually the fragment is not transmitted over HTTP, but if it is known, it - // should be included nevertheless. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' - // Note: http.url MUST NOT contain credentials passed via URL in form of - // https://username:password@www.example.com/. In such case the attribute's value - // should be https://www.example.com/. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPURL = "http.url" - // The full request target as passed in a HTTP request line or equivalent. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/path/12314/?q=ddds#123' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPTarget = "http.target" - // The value of the HTTP host header. An empty Host header should also be - // reported, see note. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'www.example.org' - // Note: When the header is present but empty the attribute SHOULD be set to the - // empty string. Note that this is a valid situation that is expected in certain - // cases, according the aforementioned section of RFC 7230. When the header is not - // set the attribute MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPHost = "http.host" - // The URI scheme identifying the used protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'http', 'https' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPScheme = "http.scheme" - // HTTP response status code. - // - // Type: int - // Required: If and only if one was received/sent. - // Stability: stable - // Examples: 200 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPStatusCode = "http.status_code" - // Kind of HTTP protocol used. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: If net.transport is not specified, it can be assumed to be IP.TCP except - // if http.flavor is QUIC, in which case IP.UDP is assumed. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavor = "http.flavor" - // Value of the HTTP User-Agent header sent by the client. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPUserAgent = "http.user_agent" - // The size of the request payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLength = "http.request_content_length" - // The size of the uncompressed request payload body after transport decoding. Not - // set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" - // The size of the response payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLength = "http.response_content_length" - // The size of the uncompressed response payload body after transport decoding. - // Not set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" -) - -const ( - // HTTP 1.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP10 = "1.0" - // HTTP 1.1 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP11 = "1.1" - // HTTP 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP20 = "2.0" - // SPDY protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorSPDY = "SPDY" - // QUIC protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorQUIC = "QUIC" -) - -// Semantic Convention for HTTP Server -const ( - // The primary server name of the matched virtual host. This should be obtained - // via configuration. If no such configuration can be obtained, this attribute - // MUST NOT be set ( net.host.name should be used instead). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Note: http.url is usually not readily available on the server side but would - // have to be assembled in a cumbersome and sometimes lossy process from other - // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus - // preferred to supply the raw data that is available. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPServerName = "http.server_name" - // The matched route (path template). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/users/:userID?' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRoute = "http.route" - // The IP address of the original client behind all proxies, if known (e.g. from - // X-Forwarded-For). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '83.164.160.102' - // Note: This is not necessarily the same as net.peer.ip, which would - // identify the network-level peer, which may be a proxy.This attribute should be - // set when a source of information different - // from the one used for net.peer.ip, is available even if that other - // source just confirms the same value as net.peer.ip. - // Rationale: For net.peer.ip, one typically does not know if it - // comes from a proxy, reverse proxy, or the actual client. Setting - // http.client_ip when it's the same as net.peer.ip means that - // one is at least somewhat confident that the address is not that of - // the closest proxy. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPClientIP = "http.client_ip" -) - -// Attributes that exist for multiple DynamoDB request types. -const ( - // The keys in the RequestItems object field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'Users', 'Cats' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" - // The JSON-serialized value of each item in the ConsumedCapacity response field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { - // "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, - // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": - // "string", "WriteCapacityUnits": number }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" - // The JSON-serialized value of the ItemCollectionMetrics response field. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, - // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : - // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": - // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" - // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" - // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" - // The value of the ConsistentRead request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" - // The value of the ProjectionExpression request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, - // ProductReviews' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" - // The value of the Limit request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" - // The value of the AttributesToGet request parameter. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'lives', 'id' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" - // The value of the IndexName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'name_to_group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" - // The value of the Select request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ALL_ATTRIBUTES', 'COUNT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSelect = "aws.dynamodb.select" -) - -// DynamoDB.CreateTable -const ( - // The JSON-serialized value of each item of the GlobalSecondaryIndexes request - // field - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": - // number, "WriteCapacityUnits": number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" - // The JSON-serialized value of each item of the LocalSecondaryIndexes request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": - // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" -) - -// DynamoDB.ListTables -const ( - // The value of the ExclusiveStartTableName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Users', 'CatsTable' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" - // The the number of items in the TableNames response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 20 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" -) - -// DynamoDB.Query -const ( - // The value of the ScanIndexForward request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" -) - -// DynamoDB.Scan -const ( - // The value of the Segment request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" - // The value of the TotalSegments request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" - // The value of the Count response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBCount = "aws.dynamodb.count" - // The value of the ScannedCount response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 50 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" -) - -// DynamoDB.UpdateTable -const ( - // The JSON-serialized value of each item in the AttributeDefinitions request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" - // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates - // request field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { - // "AttributeName": "string", "KeyType": "string" } ], "Projection": { - // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, - // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" -) - -// This document defines the attributes used in messaging systems. -const ( - // A string identifying the messaging system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'kafka', 'rabbitmq', 'rocketmq', 'activemq', 'AmazonSQS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingSystem = "messaging.system" - // The message destination name. This might be equal to the span name but is - // required nevertheless. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'MyQueue', 'MyTopic' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestination = "messaging.destination" - // The kind of message destination - // - // Type: Enum - // Required: Required only if the message destination is either a `queue` or - // `topic`. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKind = "messaging.destination_kind" - // A boolean that is true if the message destination is temporary. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingTempDestination = "messaging.temp_destination" - // The name of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AMQP', 'MQTT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocol = "messaging.protocol" - // The version of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.9.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocolVersion = "messaging.protocol_version" - // Connection string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'tibjmsnaming://localhost:7222', - // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingURL = "messaging.url" - // A value used by the messaging system as an identifier for the message, - // represented as a string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '452a7c7c7c7048c2f887f61572b18fc2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessageID = "messaging.message_id" - // The conversation ID identifying the conversation to which the message belongs, - // represented as a string. Sometimes called "Correlation ID". - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MyConversationID' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConversationID = "messaging.conversation_id" - // The (uncompressed) size of the message payload in bytes. Also use this - // attribute if it is unknown whether the compressed or uncompressed payload size - // is reported. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2738 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" - // The compressed size of the message payload in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2048 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" -) - -const ( - // A message sent to a queue - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindQueue = "queue" - // A message sent to a topic - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindTopic = "topic" -) - -// Semantic convention for a consumer of messages received from a messaging system -const ( - // A string identifying the kind of message consumption as defined in the - // Operation names section above. If the operation is "send", this - // attribute MUST NOT be set, since the operation can be inferred from the span - // kind in that case. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperation = "messaging.operation" - // The identifier for the consumer receiving a message. For Kafka, set it to - // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are - // present, or only messaging.kafka.consumer_group. For brokers, such as RabbitMQ - // and Artemis, set it to the client_id of the client consuming the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'mygroup - client-6' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConsumerID = "messaging.consumer_id" -) - -const ( - // receive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationReceive = "receive" - // process - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationProcess = "process" -) - -// Attributes for RabbitMQ -const ( - // RabbitMQ message routing key. - // - // Type: string - // Required: Unless it is empty. - // Stability: stable - // Examples: 'myKey' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" -) - -// Attributes for Apache Kafka -const ( - // Message keys in Kafka are used for grouping alike messages to ensure they're - // processed on the same partition. They differ from messaging.message_id in that - // they're not unique. If the key is null, the attribute MUST NOT be set. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myKey' - // Note: If the key type is not string, it's string representation has to be - // supplied for the attribute. If the key has no unambiguous, canonical string - // form, don't include its value. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" - // Name of the Kafka Consumer Group that is handling the message. Only applies to - // consumers, not producers. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'my-group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" - // Client ID for the Consumer or Producer that is handling the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'client-5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaClientID = "messaging.kafka.client_id" - // Partition the message is sent to. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaPartition = "messaging.kafka.partition" - // A boolean that is true if the message is a tombstone. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" -) - -// Attributes for Apache RocketMQ -const ( - // Namespace of RocketMQ resources, resources in different namespaces are - // individual. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myNamespace' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqNamespace = "messaging.rocketmq.namespace" - // Name of the RocketMQ producer/consumer group that is handling the message. The - // client type is identified by the SpanKind. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myConsumerGroup' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqClientGroup = "messaging.rocketmq.client_group" - // The unique identifier for each client. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myhost@8742@s8083jm' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqClientID = "messaging.rocketmq.client_id" - // Type of message. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageType = "messaging.rocketmq.message_type" - // The secondary classifier of message besides topic. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'tagA' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTag = "messaging.rocketmq.message_tag" - // Key(s) of message, another way to mark message besides message id. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'keyA', 'keyB' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageKeys = "messaging.rocketmq.message_keys" - // Model of message consumption. This only applies to consumer spans. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqConsumptionModel = "messaging.rocketmq.consumption_model" -) - -const ( - // Normal message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeNormal = "normal" - // FIFO message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeFifo = "fifo" - // Delay message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeDelay = "delay" - // Transaction message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeTransaction = "transaction" -) - -const ( - // Clustering consumption model - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqConsumptionModelClustering = "clustering" - // Broadcasting consumption model - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqConsumptionModelBroadcasting = "broadcasting" -) - -// This document defines semantic conventions for remote procedure calls. -const ( - // A string identifying the remoting system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'grpc', 'java_rmi', 'wcf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCSystem = "rpc.system" - // The full (logical) name of the service being called, including its package - // name, if applicable. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'myservice.EchoService' - // Note: This is the logical name of the service from the RPC interface - // perspective, which can be different from the name of any implementing class. - // The code.namespace attribute may be used to store the latter (despite the - // attribute name, it may include a class name; e.g., class with method actually - // executing the call on the server side, RPC client stub class on the client - // side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCService = "rpc.service" - // The name of the (logical) method being called, must be equal to the $method - // part in the span name. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'exampleMethod' - // Note: This is the logical name of the method from the RPC interface - // perspective, which can be different from the name of any implementing - // method/function. The code.function attribute may be used to store the latter - // (e.g., method actually executing the call on the server side, RPC client stub - // method on the client side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCMethod = "rpc.method" -) - -// Tech-specific attributes for gRPC. -const ( - // The numeric status code of the gRPC request. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" -) - -const ( - // OK - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOk = "0" - // CANCELLED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeCancelled = "1" - // UNKNOWN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnknown = "2" - // INVALID_ARGUMENT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInvalidArgument = "3" - // DEADLINE_EXCEEDED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" - // NOT_FOUND - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeNotFound = "5" - // ALREADY_EXISTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAlreadyExists = "6" - // PERMISSION_DENIED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodePermissionDenied = "7" - // RESOURCE_EXHAUSTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeResourceExhausted = "8" - // FAILED_PRECONDITION - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeFailedPrecondition = "9" - // ABORTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAborted = "10" - // OUT_OF_RANGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOutOfRange = "11" - // UNIMPLEMENTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnimplemented = "12" - // INTERNAL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInternal = "13" - // UNAVAILABLE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnavailable = "14" - // DATA_LOSS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDataLoss = "15" - // UNAUTHENTICATED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnauthenticated = "16" -) - -// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). -const ( - // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 - // does not specify this, the value can be omitted. - // - // Type: string - // Required: If missing, it is assumed to be "1.0". - // Stability: stable - // Examples: '2.0', '1.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" - // id property of request or response. Since protocol allows id to be int, string, - // null or missing (for notifications), value is expected to be cast to string for - // simplicity. Use empty string in case of null value. Omit entirely if this is a - // notification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '10', 'request-7', '' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" - // error.code property of response if it is an error response. - // - // Type: int - // Required: If missing, response is assumed to be successful. - // Stability: stable - // Examples: -32700, 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" - // error.message property of response if it is an error response. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Parse error', 'User already exists' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" -) - -// RPC received/sent message. -const ( - // Whether this is a received or sent message. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageType = "message.type" - // MUST be calculated as two different counters starting from 1 one for sent - // messages and one for received message. - // - // Type: int - // Required: No - // Stability: stable - // Note: This way we guarantee that the values will be consistent between - // different implementations. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageID = "message.id" - // Compressed size of the message in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageCompressedSize = "message.compressed_size" - // Uncompressed size of the message in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageUncompressedSize = "message.uncompressed_size" -) - -const ( - // sent - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageTypeSent = "SENT" - // received - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageTypeReceived = "RECEIVED" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetTraceSemanticConventionAttributeNames() []string { - return []string{ - AttributeAWSLambdaInvokedARN, - AttributeDBSystem, - AttributeDBConnectionString, - AttributeDBUser, - AttributeDBJDBCDriverClassname, - AttributeDBName, - AttributeDBStatement, - AttributeDBOperation, - AttributeDBMSSQLInstanceName, - AttributeDBCassandraPageSize, - AttributeDBCassandraConsistencyLevel, - AttributeDBCassandraTable, - AttributeDBCassandraIdempotence, - AttributeDBCassandraSpeculativeExecutionCount, - AttributeDBCassandraCoordinatorID, - AttributeDBCassandraCoordinatorDC, - AttributeDBRedisDBIndex, - AttributeDBMongoDBCollection, - AttributeDBSQLTable, - AttributeExceptionType, - AttributeExceptionMessage, - AttributeExceptionStacktrace, - AttributeExceptionEscaped, - AttributeFaaSTrigger, - AttributeFaaSExecution, - AttributeFaaSDocumentCollection, - AttributeFaaSDocumentOperation, - AttributeFaaSDocumentTime, - AttributeFaaSDocumentName, - AttributeFaaSTime, - AttributeFaaSCron, - AttributeFaaSColdstart, - AttributeFaaSInvokedName, - AttributeFaaSInvokedProvider, - AttributeFaaSInvokedRegion, - AttributeNetTransport, - AttributeNetPeerIP, - AttributeNetPeerPort, - AttributeNetPeerName, - AttributeNetHostIP, - AttributeNetHostPort, - AttributeNetHostName, - AttributeNetHostConnectionType, - AttributeNetHostConnectionSubtype, - AttributeNetHostCarrierName, - AttributeNetHostCarrierMcc, - AttributeNetHostCarrierMnc, - AttributeNetHostCarrierIcc, - AttributePeerService, - AttributeEnduserID, - AttributeEnduserRole, - AttributeEnduserScope, - AttributeThreadID, - AttributeThreadName, - AttributeCodeFunction, - AttributeCodeNamespace, - AttributeCodeFilepath, - AttributeCodeLineNumber, - AttributeHTTPMethod, - AttributeHTTPURL, - AttributeHTTPTarget, - AttributeHTTPHost, - AttributeHTTPScheme, - AttributeHTTPStatusCode, - AttributeHTTPFlavor, - AttributeHTTPUserAgent, - AttributeHTTPRequestContentLength, - AttributeHTTPRequestContentLengthUncompressed, - AttributeHTTPResponseContentLength, - AttributeHTTPResponseContentLengthUncompressed, - AttributeHTTPServerName, - AttributeHTTPRoute, - AttributeHTTPClientIP, - AttributeAWSDynamoDBTableNames, - AttributeAWSDynamoDBConsumedCapacity, - AttributeAWSDynamoDBItemCollectionMetrics, - AttributeAWSDynamoDBProvisionedReadCapacity, - AttributeAWSDynamoDBProvisionedWriteCapacity, - AttributeAWSDynamoDBConsistentRead, - AttributeAWSDynamoDBProjection, - AttributeAWSDynamoDBLimit, - AttributeAWSDynamoDBAttributesToGet, - AttributeAWSDynamoDBIndexName, - AttributeAWSDynamoDBSelect, - AttributeAWSDynamoDBGlobalSecondaryIndexes, - AttributeAWSDynamoDBLocalSecondaryIndexes, - AttributeAWSDynamoDBExclusiveStartTable, - AttributeAWSDynamoDBTableCount, - AttributeAWSDynamoDBScanForward, - AttributeAWSDynamoDBSegment, - AttributeAWSDynamoDBTotalSegments, - AttributeAWSDynamoDBCount, - AttributeAWSDynamoDBScannedCount, - AttributeAWSDynamoDBAttributeDefinitions, - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, - AttributeMessagingSystem, - AttributeMessagingDestination, - AttributeMessagingDestinationKind, - AttributeMessagingTempDestination, - AttributeMessagingProtocol, - AttributeMessagingProtocolVersion, - AttributeMessagingURL, - AttributeMessagingMessageID, - AttributeMessagingConversationID, - AttributeMessagingMessagePayloadSizeBytes, - AttributeMessagingMessagePayloadCompressedSizeBytes, - AttributeMessagingOperation, - AttributeMessagingConsumerID, - AttributeMessagingRabbitmqRoutingKey, - AttributeMessagingKafkaMessageKey, - AttributeMessagingKafkaConsumerGroup, - AttributeMessagingKafkaClientID, - AttributeMessagingKafkaPartition, - AttributeMessagingKafkaTombstone, - AttributeMessagingRocketmqNamespace, - AttributeMessagingRocketmqClientGroup, - AttributeMessagingRocketmqClientID, - AttributeMessagingRocketmqMessageType, - AttributeMessagingRocketmqMessageTag, - AttributeMessagingRocketmqMessageKeys, - AttributeMessagingRocketmqConsumptionModel, - AttributeRPCSystem, - AttributeRPCService, - AttributeRPCMethod, - AttributeRPCGRPCStatusCode, - AttributeRPCJsonrpcVersion, - AttributeRPCJsonrpcRequestID, - AttributeRPCJsonrpcErrorCode, - AttributeRPCJsonrpcErrorMessage, - AttributeMessageType, - AttributeMessageID, - AttributeMessageCompressedSize, - AttributeMessageUncompressedSize, - } -} diff --git a/model/semconv/v1.8.0/nonstandard.go b/model/semconv/v1.8.0/nonstandard.go deleted file mode 100644 index 66bf56f78d4..00000000000 --- a/model/semconv/v1.8.0/nonstandard.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.8.0" - -const ( - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryName = "otel.library.name" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryVersion = "otel.library.version" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusCode = "otel.status_code" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusDescription = "otel.status_description" -) diff --git a/model/semconv/v1.8.0/schema.go b/model/semconv/v1.8.0/schema.go deleted file mode 100644 index 8274dd17891..00000000000 --- a/model/semconv/v1.8.0/schema.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.8.0" - -// SchemaURL is the schema URL that matches the version of the semantic conventions -// that this package defines. Conventions packages starting from v1.4.0 must declare -// non-empty schema URL in the form https://opentelemetry.io/schemas/ -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -const SchemaURL = "https://opentelemetry.io/schemas/1.8.0" diff --git a/model/semconv/v1.9.0/generated_resource.go b/model/semconv/v1.9.0/generated_resource.go deleted file mode 100644 index 26be31f2106..00000000000 --- a/model/semconv/v1.9.0/generated_resource.go +++ /dev/null @@ -1,1179 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv - -// A cloud environment (e.g. GCP, Azure, AWS) -const ( - // Name of the cloud provider. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProvider = "cloud.provider" - // The cloud account ID the resource is assigned to. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '111111111111', 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAccountID = "cloud.account.id" - // The geographical region the resource is running. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-central1', 'us-east-1' - // Note: Refer to your provider's docs to see the available regions, for example - // Alibaba Cloud regions, AWS regions, Azure regions, Google Cloud regions, or - // Tencent Cloud regions. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudRegion = "cloud.region" - // Cloud regions often have multiple, isolated locations known as zones to - // increase availability. Availability zone represents the zone where the resource - // is running. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-east-1c' - // Note: Availability zones are called "zones" on Alibaba Cloud and - // Google Cloud. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudAvailabilityZone = "cloud.availability_zone" - // The cloud platform in use. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: The prefix of the service SHOULD match the one specified in - // cloud.provider. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatform = "cloud.platform" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderGCP = "gcp" - // Tencent Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudProviderTencentCloud = "tencent_cloud" -) - -const ( - // Alibaba Cloud Elastic Compute Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudECS = "alibaba_cloud_ecs" - // Alibaba Cloud Function Compute - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAlibabaCloudFc = "alibaba_cloud_fc" - // AWS Elastic Compute Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEC2 = "aws_ec2" - // AWS Elastic Container Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSECS = "aws_ecs" - // AWS Elastic Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSEKS = "aws_eks" - // AWS Lambda - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSLambda = "aws_lambda" - // AWS Elastic Beanstalk - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSElasticBeanstalk = "aws_elastic_beanstalk" - // AWS App Runner - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAWSAppRunner = "aws_app_runner" - // Azure Virtual Machines - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureVM = "azure_vm" - // Azure Container Instances - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureContainerInstances = "azure_container_instances" - // Azure Kubernetes Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAKS = "azure_aks" - // Azure Functions - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureFunctions = "azure_functions" - // Azure App Service - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformAzureAppService = "azure_app_service" - // Google Cloud Compute Engine (GCE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPComputeEngine = "gcp_compute_engine" - // Google Cloud Run - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudRun = "gcp_cloud_run" - // Google Cloud Kubernetes Engine (GKE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPKubernetesEngine = "gcp_kubernetes_engine" - // Google Cloud Functions (GCF) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPCloudFunctions = "gcp_cloud_functions" - // Google Cloud App Engine (GAE) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformGCPAppEngine = "gcp_app_engine" - // Tencent Cloud Cloud Virtual Machine (CVM) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformTencentCloudCvm = "tencent_cloud_cvm" - // Tencent Cloud Elastic Kubernetes Service (EKS) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformTencentCloudEKS = "tencent_cloud_eks" - // Tencent Cloud Serverless Cloud Function (SCF) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCloudPlatformTencentCloudScf = "tencent_cloud_scf" -) - -// Resources used by AWS Elastic Container Service (ECS). -const ( - // The Amazon Resource Name (ARN) of an ECS container instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSContainerARN = "aws.ecs.container.arn" - // The ARN of an ECS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSClusterARN = "aws.ecs.cluster.arn" - // The launch type for an ECS task. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtype = "aws.ecs.launchtype" - // The ARN of an ECS task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us- - // west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskARN = "aws.ecs.task.arn" - // The task definition family this task definition is a member of. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-family' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskFamily = "aws.ecs.task.family" - // The revision for this task definition. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '8', '26' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSTaskRevision = "aws.ecs.task.revision" -) - -const ( - // ec2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeEC2 = "ec2" - // fargate - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSECSLaunchtypeFargate = "fargate" -) - -// Resources used by AWS Elastic Kubernetes Service (EKS). -const ( - // The ARN of an EKS cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSEKSClusterARN = "aws.eks.cluster.arn" -) - -// Resources specific to Amazon Web Services. -const ( - // The name(s) of the AWS log group(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '/aws/lambda/my-function', 'opentelemetry-service' - // Note: Multiple log groups must be supported for cases like multi-container - // applications, where a single application has sidecar containers, and each write - // to their own log group. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupNames = "aws.log.group.names" - // The Amazon Resource Name(s) (ARN) of the AWS log group(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*' - // Note: See the log group ARN format documentation. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogGroupARNs = "aws.log.group.arns" - // The name(s) of the AWS log stream(s) an application is writing to. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamNames = "aws.log.stream.names" - // The ARN(s) of the AWS log stream(s). - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log- - // stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b' - // Note: See the log stream ARN format documentation. One log group can contain - // several log streams, so these ARNs necessarily identify both a log group and a - // log stream. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLogStreamARNs = "aws.log.stream.arns" -) - -// A container instance. -const ( - // Container name used by container runtime. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerName = "container.name" - // Container ID. Usually a UUID, as for example used to identify Docker - // containers. The UUID might be abbreviated. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'a3bf90e006b2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerID = "container.id" - // The container runtime managing this container. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'docker', 'containerd', 'rkt' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerRuntime = "container.runtime" - // Name of the image the container was built on. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'gcr.io/opentelemetry/operator' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageName = "container.image.name" - // Container image tag. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeContainerImageTag = "container.image.tag" -) - -// The software deployment. -const ( - // Name of the deployment environment (aka deployment tier). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'staging', 'production' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeploymentEnvironment = "deployment.environment" -) - -// The device on which the process represented by this resource is running. -const ( - // A unique identifier representing the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2ab2916d-a51f-4ac8-80ee-45ac31a28092' - // Note: The device identifier MUST only be defined using the values outlined - // below. This value is not an advertising identifier and MUST NOT be used as - // such. On iOS (Swift or Objective-C), this value MUST be equal to the vendor - // identifier. On Android (Java or Kotlin), this value MUST be equal to the - // Firebase Installation ID or a globally unique UUID which is persisted across - // sessions in your application. More information can be found here on best - // practices and exact implementation details. Caution should be taken when - // storing personal data or anything which can identify a user. GDPR and data - // protection laws may apply, ensure you do your own due diligence. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceID = "device.id" - // The model identifier for the device - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone3,4', 'SM-G920F' - // Note: It's recommended this value represents a machine readable version of the - // model identifier rather than the market or consumer-friendly name of the - // device. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelIdentifier = "device.model.identifier" - // The marketing name for the device model - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iPhone 6s Plus', 'Samsung Galaxy S6' - // Note: It's recommended this value represents a human readable version of the - // device model rather than a machine readable alternative. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceModelName = "device.model.name" - // The name of the device manufacturer - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Apple', 'Samsung' - // Note: The Android OS provides this field via Build. iOS apps SHOULD hardcode - // the value Apple. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDeviceManufacturer = "device.manufacturer" -) - -// A serverless instance. -const ( - // The name of the single function that this runtime instance executes. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: This is the name of the function as configured/deployed on the FaaS - // platform and is usually different from the name of the callback function (which - // may be stored in the code.namespace/code.function span attributes). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSName = "faas.name" - // The unique ID of the single function that this runtime instance executes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-west-2:123456789012:function:my-function' - // Note: Depending on the cloud provider, use:
    - //
  • AWS Lambda: The function ARN.
  • - //
- // Take care not to use the "invoked ARN" directly but replace any - // alias suffix with the resolved function version, as the same runtime instance - // may be invokable with multiple - // different aliases.
    - //
  • GCP: The URI of the resource
  • - //
  • Azure: The Fully Qualified Resource ID.
  • - //
- // On some providers, it may not be possible to determine the full ID at startup, - // which is why this field cannot be made required. For example, on AWS the - // account ID - // part of the ARN is not available without calling another AWS API - // which may be deemed too slow for a short-running lambda function. - // As an alternative, consider setting faas.id as a span attribute instead. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSID = "faas.id" - // The immutable version of the function being executed. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '26', 'pinkfroid-00002' - // Note: Depending on the cloud provider and platform, use:
    - //
  • AWS Lambda: The function version - // (an integer represented as a decimal string).
  • - //
  • Google Cloud Run: The revision - // (i.e., the function name plus the revision suffix).
  • - //
  • Google Cloud Functions: The value of the - // K_REVISION environment variable.
  • - //
  • Azure Functions: Not applicable. Do not set this attribute.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSVersion = "faas.version" - // The execution environment ID as a string, that will be potentially reused for - // other invocations to the same function/function version. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de' - // Note:
    - //
  • AWS Lambda: Use the (full) log stream name.
  • - //
- // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInstance = "faas.instance" - // The amount of memory available to the serverless function in MiB. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 128 - // Note: It's recommended to set this attribute since e.g. too little memory can - // easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, - // the environment variable AWS_LAMBDA_FUNCTION_MEMORY_SIZE provides this - // information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSMaxMemory = "faas.max_memory" -) - -// A host is defined as a general computing instance. -const ( - // Unique host ID. For Cloud, this must be the instance_id assigned by the cloud - // provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostID = "host.id" - // Name of the host. On Unix systems, it may contain what the hostname command - // returns, or the fully qualified hostname, or another name specified by the - // user. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-test' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostName = "host.name" - // Type of host. For Cloud, this must be the machine type. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'n1-standard-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostType = "host.type" - // The CPU architecture the host system is running on. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArch = "host.arch" - // Name of the VM image or OS install the host was instantiated from. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageName = "host.image.name" - // VM image ID. For Cloud, this value is from the provider. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ami-07b06b442921831e5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageID = "host.image.id" - // The version string of the VM image as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostImageVersion = "host.image.version" -) - -const ( - // AMD64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchAMD64 = "amd64" - // ARM32 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM32 = "arm32" - // ARM64 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchARM64 = "arm64" - // Itanium - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchIA64 = "ia64" - // 32-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC32 = "ppc32" - // 64-bit PowerPC - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchPPC64 = "ppc64" - // IBM z/Architecture - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchS390x = "s390x" - // 32-bit x86 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHostArchX86 = "x86" -) - -// A Kubernetes Cluster. -const ( - // The name of the cluster. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-cluster' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SClusterName = "k8s.cluster.name" -) - -// A Kubernetes Node object. -const ( - // The name of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'node-1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeName = "k8s.node.name" - // The UID of the Node. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNodeUID = "k8s.node.uid" -) - -// A Kubernetes Namespace. -const ( - // The name of the namespace that the pod is running in. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'default' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SNamespaceName = "k8s.namespace.name" -) - -// A Kubernetes Pod object. -const ( - // The UID of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodUID = "k8s.pod.uid" - // The name of the Pod. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry-pod-autoconf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SPodName = "k8s.pod.name" -) - -// A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). -const ( - // The name of the Container from Pod specification, must be unique within a Pod. - // Container runtime usually uses different globally unique name (container.name). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'redis' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SContainerName = "k8s.container.name" - // Number of times the container was restarted. This attribute can be used to - // identify a particular container (running or stopped) within a container spec. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 0, 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SContainerRestartCount = "k8s.container.restart_count" -) - -// A Kubernetes ReplicaSet object. -const ( - // The UID of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetUID = "k8s.replicaset.uid" - // The name of the ReplicaSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SReplicaSetName = "k8s.replicaset.name" -) - -// A Kubernetes Deployment object. -const ( - // The UID of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentUID = "k8s.deployment.uid" - // The name of the Deployment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDeploymentName = "k8s.deployment.name" -) - -// A Kubernetes StatefulSet object. -const ( - // The UID of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetUID = "k8s.statefulset.uid" - // The name of the StatefulSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SStatefulSetName = "k8s.statefulset.name" -) - -// A Kubernetes DaemonSet object. -const ( - // The UID of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetUID = "k8s.daemonset.uid" - // The name of the DaemonSet. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SDaemonSetName = "k8s.daemonset.name" -) - -// A Kubernetes Job object. -const ( - // The UID of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobUID = "k8s.job.uid" - // The name of the Job. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SJobName = "k8s.job.name" -) - -// A Kubernetes CronJob object. -const ( - // The UID of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '275ecb36-5aa8-4c2a-9c47-d8bb681b9aff' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobUID = "k8s.cronjob.uid" - // The name of the CronJob. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeK8SCronJobName = "k8s.cronjob.name" -) - -// The operating system (OS) on which the process represented by this resource is running. -const ( - // The operating system type. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSType = "os.type" - // Human readable (not intended to be parsed) OS version information, like e.g. - // reported by ver or lsb_release -a commands. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSDescription = "os.description" - // Human readable operating system name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'iOS', 'Android', 'Ubuntu' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSName = "os.name" - // The version string of the operating system as defined in Version Attributes. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.2.1', '18.04.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSVersion = "os.version" -) - -const ( - // Microsoft Windows - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeWindows = "windows" - // Linux - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeLinux = "linux" - // Apple Darwin - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDarwin = "darwin" - // FreeBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeFreeBSD = "freebsd" - // NetBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeNetBSD = "netbsd" - // OpenBSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeOpenBSD = "openbsd" - // DragonFly BSD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeDragonflyBSD = "dragonflybsd" - // HP-UX (Hewlett Packard Unix) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeHPUX = "hpux" - // AIX (Advanced Interactive eXecutive) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeAIX = "aix" - // Oracle Solaris - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeSolaris = "solaris" - // IBM z/OS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOSTypeZOS = "z_os" -) - -// An operating system process. -const ( - // Process identifier (PID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 1234 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessPID = "process.pid" - // The name of the process executable. On Linux based systems, can be set to the - // Name in proc/[pid]/status. On Windows, can be set to the base name of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutableName = "process.executable.name" - // The full path to the process executable. On Linux based systems, can be set to - // the target of proc/[pid]/exe. On Windows, can be set to the result of - // GetProcessImageFileNameW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: '/usr/bin/cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessExecutablePath = "process.executable.path" - // The command used to launch the process (i.e. the command name). On Linux based - // systems, can be set to the zeroth string in proc/[pid]/cmdline. On Windows, can - // be set to the first parameter extracted from GetCommandLineW. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'cmd/otelcol' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommand = "process.command" - // The full command used to launch the process as a single string representing the - // full command. On Windows, can be set to the result of GetCommandLineW. Do not - // set this if you have to assemble it just for monitoring; use - // process.command_args instead. - // - // Type: string - // Required: See below - // Stability: stable - // Examples: 'C:\\cmd\\otecol --config="my directory\\config.yaml"' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandLine = "process.command_line" - // All the command arguments (including the command/executable itself) as received - // by the process. On Linux-based systems (and some other Unixoid systems - // supporting procfs), can be set according to the list of null-delimited strings - // extracted from proc/[pid]/cmdline. For libc-based executables, this would be - // the full argv vector passed to main. - // - // Type: string[] - // Required: See below - // Stability: stable - // Examples: 'cmd/otecol', '--config=config.yaml' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessCommandArgs = "process.command_args" - // The username of the user that owns the process. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'root' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessOwner = "process.owner" -) - -// The single (language) runtime instance which is monitored. -const ( - // The name of the runtime of this process. For compiled native binaries, this - // SHOULD be the name of the compiler. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'OpenJDK Runtime Environment' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeName = "process.runtime.name" - // The version of the runtime of this process, as returned by the runtime without - // modification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '14.0.2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeVersion = "process.runtime.version" - // An additional description about the runtime of the process, for example a - // specific vendor customization of the runtime environment. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeProcessRuntimeDescription = "process.runtime.description" -) - -// A service instance. -const ( - // Logical name of the service. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'shoppingcart' - // Note: MUST be the same for all instances of horizontally scaled services. If - // the value was not specified, SDKs MUST fallback to unknown_service: - // concatenated with process.executable.name, e.g. unknown_service:bash. If - // process.executable.name is not available, the value MUST be set to - // unknown_service. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceName = "service.name" - // A namespace for service.name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Shop' - // Note: A string value having a meaning that helps to distinguish a group of - // services, for example the team name that owns a group of services. service.name - // is expected to be unique within the same namespace. If service.namespace is not - // specified in the Resource then service.name is expected to be unique for all - // services that have no explicit namespace defined (so the empty/unspecified - // namespace is simply one more valid namespace). Zero-length namespace string is - // assumed equal to unspecified namespace. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceNamespace = "service.namespace" - // The string ID of the service instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '627cc493-f310-47de-96bd-71410b7dec09' - // Note: MUST be unique for each instance of the same - // service.namespace,service.name pair (in other words - // service.namespace,service.name,service.instance.id triplet MUST be globally - // unique). The ID helps to distinguish instances of the same service that exist - // at the same time (e.g. instances of a horizontally scaled service). It is - // preferable for the ID to be persistent and stay the same for the lifetime of - // the service instance, however it is acceptable that the ID is ephemeral and - // changes during important lifetime events for the service (e.g. service - // restarts). If the service has no inherent unique ID that can be used as the - // value of this attribute it is recommended to generate a random Version 1 or - // Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use - // Version 5, see RFC 4122 for more recommendations). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceInstanceID = "service.instance.id" - // The version string of the service API or implementation. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '2.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeServiceVersion = "service.version" -) - -// The telemetry SDK used to capture data recorded by the instrumentation libraries. -const ( - // The name of the telemetry SDK as defined above. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'opentelemetry' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKName = "telemetry.sdk.name" - // The language of the telemetry SDK. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguage = "telemetry.sdk.language" - // The version string of the telemetry SDK. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKVersion = "telemetry.sdk.version" - // The version string of the auto instrumentation agent, if used. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '1.2.3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetryAutoVersion = "telemetry.auto.version" -) - -const ( - // cpp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageCPP = "cpp" - // dotnet - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageDotnet = "dotnet" - // erlang - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageErlang = "erlang" - // go - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageGo = "go" - // java - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageJava = "java" - // nodejs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageNodejs = "nodejs" - // php - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePHP = "php" - // python - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguagePython = "python" - // ruby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageRuby = "ruby" - // webjs - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageWebjs = "webjs" - // swift - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeTelemetrySDKLanguageSwift = "swift" -) - -// Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. -const ( - // The name of the web engine. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'WildFly' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineName = "webengine.name" - // The version of the web engine. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '21.0.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineVersion = "webengine.version" - // Additional description of the web engine (e.g. detailed version and edition - // information). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) - 2.2.2.Final' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeWebEngineDescription = "webengine.description" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetResourceSemanticConventionAttributeNames() []string { - return []string{ - AttributeCloudProvider, - AttributeCloudAccountID, - AttributeCloudRegion, - AttributeCloudAvailabilityZone, - AttributeCloudPlatform, - AttributeAWSECSContainerARN, - AttributeAWSECSClusterARN, - AttributeAWSECSLaunchtype, - AttributeAWSECSTaskARN, - AttributeAWSECSTaskFamily, - AttributeAWSECSTaskRevision, - AttributeAWSEKSClusterARN, - AttributeAWSLogGroupNames, - AttributeAWSLogGroupARNs, - AttributeAWSLogStreamNames, - AttributeAWSLogStreamARNs, - AttributeContainerName, - AttributeContainerID, - AttributeContainerRuntime, - AttributeContainerImageName, - AttributeContainerImageTag, - AttributeDeploymentEnvironment, - AttributeDeviceID, - AttributeDeviceModelIdentifier, - AttributeDeviceModelName, - AttributeDeviceManufacturer, - AttributeFaaSName, - AttributeFaaSID, - AttributeFaaSVersion, - AttributeFaaSInstance, - AttributeFaaSMaxMemory, - AttributeHostID, - AttributeHostName, - AttributeHostType, - AttributeHostArch, - AttributeHostImageName, - AttributeHostImageID, - AttributeHostImageVersion, - AttributeK8SClusterName, - AttributeK8SNodeName, - AttributeK8SNodeUID, - AttributeK8SNamespaceName, - AttributeK8SPodUID, - AttributeK8SPodName, - AttributeK8SContainerName, - AttributeK8SContainerRestartCount, - AttributeK8SReplicaSetUID, - AttributeK8SReplicaSetName, - AttributeK8SDeploymentUID, - AttributeK8SDeploymentName, - AttributeK8SStatefulSetUID, - AttributeK8SStatefulSetName, - AttributeK8SDaemonSetUID, - AttributeK8SDaemonSetName, - AttributeK8SJobUID, - AttributeK8SJobName, - AttributeK8SCronJobUID, - AttributeK8SCronJobName, - AttributeOSType, - AttributeOSDescription, - AttributeOSName, - AttributeOSVersion, - AttributeProcessPID, - AttributeProcessExecutableName, - AttributeProcessExecutablePath, - AttributeProcessCommand, - AttributeProcessCommandLine, - AttributeProcessCommandArgs, - AttributeProcessOwner, - AttributeProcessRuntimeName, - AttributeProcessRuntimeVersion, - AttributeProcessRuntimeDescription, - AttributeServiceName, - AttributeServiceNamespace, - AttributeServiceInstanceID, - AttributeServiceVersion, - AttributeTelemetrySDKName, - AttributeTelemetrySDKLanguage, - AttributeTelemetrySDKVersion, - AttributeTelemetryAutoVersion, - AttributeWebEngineName, - AttributeWebEngineVersion, - AttributeWebEngineDescription, - } -} diff --git a/model/semconv/v1.9.0/generated_trace.go b/model/semconv/v1.9.0/generated_trace.go deleted file mode 100644 index 659b36d72c8..00000000000 --- a/model/semconv/v1.9.0/generated_trace.go +++ /dev/null @@ -1,2021 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated from semantic convention specification. DO NOT EDIT. - -package semconv - -// Span attributes used by AWS Lambda (in addition to general `faas` attributes). -const ( - // The full invoked ARN as provided on the Context passed to the function (Lambda- - // Runtime-Invoked-Function-ARN header on the /runtime/invocation/next - // applicable). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias' - // Note: This may be different from faas.id if an alias is involved. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSLambdaInvokedARN = "aws.lambda.invoked_arn" -) - -// This document defines semantic conventions for the OpenTracing Shim -const ( - // Parent-child Reference type - // - // Type: Enum - // Required: No - // Stability: stable - // Note: The causal relationship between a child Span and a parent Span. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOpentracingRefType = "opentracing.ref_type" -) - -const ( - // The parent Span depends on the child Span in some capacity - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOpentracingRefTypeChildOf = "child_of" - // The parent Span does not depend in any way on the result of the child Span - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeOpentracingRefTypeFollowsFrom = "follows_from" -) - -// This document defines the attributes used to perform database client calls. -const ( - // An identifier for the database management system (DBMS) product being used. See - // below for a list of well-known identifiers. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystem = "db.system" - // The connection string used to connect to the database. It is recommended to - // remove embedded credentials. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBConnectionString = "db.connection_string" - // Username for accessing the database. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'readonly_user', 'reporting_user' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBUser = "db.user" - // The fully-qualified class name of the Java Database Connectivity (JDBC) driver - // used to connect. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'org.postgresql.Driver', - // 'com.microsoft.sqlserver.jdbc.SQLServerDriver' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBJDBCDriverClassname = "db.jdbc.driver_classname" - // This attribute is used to report the name of the database being accessed. For - // commands that switch the database, this should be set to the target database - // (even if the command fails). - // - // Type: string - // Required: Required, if applicable. - // Stability: stable - // Examples: 'customers', 'main' - // Note: In some SQL databases, the database name to be used is called - // "schema name". In case there are multiple layers that could be - // considered for database name (e.g. Oracle instance name and schema name), the - // database name to be used is the more specific layer (e.g. Oracle schema name). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBName = "db.name" - // The database statement being executed. - // - // Type: string - // Required: Required if applicable and not explicitly disabled via - // instrumentation configuration. - // Stability: stable - // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"' - // Note: The value may be sanitized to exclude sensitive information. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBStatement = "db.statement" - // The name of the operation being executed, e.g. the MongoDB command name such as - // findAndModify, or the SQL keyword. - // - // Type: string - // Required: Required, if `db.statement` is not applicable. - // Stability: stable - // Examples: 'findAndModify', 'HMSET', 'SELECT' - // Note: When setting this to an SQL keyword, it is not recommended to attempt any - // client-side parsing of db.statement just to get this property, but it should be - // set if the operation name is provided by the library being instrumented. If the - // SQL statement has an ambiguous operation, or performs more than one operation, - // this value may be omitted. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBOperation = "db.operation" -) - -const ( - // Some other SQL database. Fallback only. See notes - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOtherSQL = "other_sql" - // Microsoft SQL Server - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMSSQL = "mssql" - // MySQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMySQL = "mysql" - // Oracle Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemOracle = "oracle" - // IBM DB2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDB2 = "db2" - // PostgreSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPostgreSQL = "postgresql" - // Amazon Redshift - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedshift = "redshift" - // Apache Hive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHive = "hive" - // Cloudscape - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCloudscape = "cloudscape" - // HyperSQL DataBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHSQLDB = "hsqldb" - // Progress Database - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemProgress = "progress" - // SAP MaxDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMaxDB = "maxdb" - // SAP HANA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHanaDB = "hanadb" - // Ingres - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemIngres = "ingres" - // FirstSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirstSQL = "firstsql" - // EnterpriseDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemEDB = "edb" - // InterSystems Caché - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCache = "cache" - // Adabas (Adaptable Database System) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemAdabas = "adabas" - // Firebird - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFirebird = "firebird" - // Apache Derby - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDerby = "derby" - // FileMaker - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemFilemaker = "filemaker" - // Informix - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInformix = "informix" - // InstantDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInstantDB = "instantdb" - // InterBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemInterbase = "interbase" - // MariaDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMariaDB = "mariadb" - // Netezza - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNetezza = "netezza" - // Pervasive PSQL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPervasive = "pervasive" - // PointBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemPointbase = "pointbase" - // SQLite - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSqlite = "sqlite" - // Sybase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemSybase = "sybase" - // Teradata - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemTeradata = "teradata" - // Vertica - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemVertica = "vertica" - // H2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemH2 = "h2" - // ColdFusion IMQ - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemColdfusion = "coldfusion" - // Apache Cassandra - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCassandra = "cassandra" - // Apache HBase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemHBase = "hbase" - // MongoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMongoDB = "mongodb" - // Redis - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemRedis = "redis" - // Couchbase - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchbase = "couchbase" - // CouchDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCouchDB = "couchdb" - // Microsoft Azure Cosmos DB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCosmosDB = "cosmosdb" - // Amazon DynamoDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemDynamoDB = "dynamodb" - // Neo4j - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemNeo4j = "neo4j" - // Apache Geode - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemGeode = "geode" - // Elasticsearch - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemElasticsearch = "elasticsearch" - // Memcached - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemMemcached = "memcached" - // CockroachDB - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSystemCockroachdb = "cockroachdb" -) - -// Connection-level attributes for Microsoft SQL Server -const ( - // The Microsoft SQL Server instance name connecting to. This name is used to - // determine the port of a named instance. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MSSQLSERVER' - // Note: If setting a db.mssql.instance_name, net.peer.port is no longer required - // (but still recommended if non-standard). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMSSQLInstanceName = "db.mssql.instance_name" -) - -// Call-level attributes for Cassandra -const ( - // The fetch size used for paging, i.e. how many rows will be returned at once. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5000 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraPageSize = "db.cassandra.page_size" - // The consistency level of the query. Based on consistency values from CQL. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevel = "db.cassandra.consistency_level" - // The name of the primary table that the operation is acting upon, including the - // keyspace name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'mytable' - // Note: This mirrors the db.sql.table attribute but references cassandra rather - // than sql. It is not recommended to attempt any client-side parsing of - // db.statement just to get this property, but it should be set if it is provided - // by the library being instrumented. If the operation is acting upon an anonymous - // table, or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraTable = "db.cassandra.table" - // Whether or not the query is idempotent. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraIdempotence = "db.cassandra.idempotence" - // The number of times a query was speculatively executed. Not set or 0 if the - // query was not executed speculatively. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 0, 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraSpeculativeExecutionCount = "db.cassandra.speculative_execution_count" - // The ID of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorID = "db.cassandra.coordinator.id" - // The data center of the coordinating node for a query. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'us-west-2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraCoordinatorDC = "db.cassandra.coordinator.dc" -) - -const ( - // all - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAll = "all" - // each_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelEachQuorum = "each_quorum" - // quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelQuorum = "quorum" - // local_quorum - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalQuorum = "local_quorum" - // one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelOne = "one" - // two - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelTwo = "two" - // three - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelThree = "three" - // local_one - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalOne = "local_one" - // any - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelAny = "any" - // serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelSerial = "serial" - // local_serial - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBCassandraConsistencyLevelLocalSerial = "local_serial" -) - -// Call-level attributes for Redis -const ( - // The index of the database being accessed as used in the SELECT command, - // provided as an integer. To be used instead of the generic db.name attribute. - // - // Type: int - // Required: Required, if other than the default database (`0`). - // Stability: stable - // Examples: 0, 1, 15 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBRedisDBIndex = "db.redis.database_index" -) - -// Call-level attributes for MongoDB -const ( - // The collection being accessed within the database stated in db.name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'customers', 'products' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBMongoDBCollection = "db.mongodb.collection" -) - -// Call-level attributes for SQL databases -const ( - // The name of the primary table that the operation is acting upon, including the - // database name (if applicable). - // - // Type: string - // Required: Recommended if available. - // Stability: stable - // Examples: 'public.users', 'customers' - // Note: It is not recommended to attempt any client-side parsing of db.statement - // just to get this property, but it should be set if it is provided by the - // library being instrumented. If the operation is acting upon an anonymous table, - // or more than one table, this value MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeDBSQLTable = "db.sql.table" -) - -// This document defines the attributes used to report a single exception associated with a span. -const ( - // The type of the exception (its fully-qualified class name, if applicable). The - // dynamic type of the exception should be preferred over the static type in - // languages that support it. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'java.net.ConnectException', 'OSError' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionType = "exception.type" - // The exception message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionMessage = "exception.message" - // A stacktrace as a string in the natural representation for the language - // runtime. The representation is to be determined and documented by each language - // SIG. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Exception in thread "main" java.lang.RuntimeException: Test - // exception\\n at ' - // 'com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at ' - // 'com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at ' - // 'com.example.GenerateTrace.main(GenerateTrace.java:5)' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionStacktrace = "exception.stacktrace" - // SHOULD be set to true if the exception event is recorded at a point where it is - // known that the exception is escaping the scope of the span. - // - // Type: boolean - // Required: No - // Stability: stable - // Note: An exception is considered to have escaped (or left) the scope of a span, - // if that span is ended while the exception is still logically "in - // flight". - // This may be actually "in flight" in some languages (e.g. if the - // exception - // is passed to a Context manager's __exit__ method in Python) but will - // usually be caught at the point of recording the exception in most languages.It - // is usually not possible to determine at the point where an exception is thrown - // whether it will escape the scope of a span. - // However, it is trivial to know that an exception - // will escape, if one checks for an active exception just before ending the span, - // as done in the example above.It follows that an exception may still escape the - // scope of the span - // even if the exception.escaped attribute was not set or set to false, - // since the event might have been recorded at a time where it was not - // clear whether the exception will escape. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeExceptionEscaped = "exception.escaped" -) - -// This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans. -const ( - // Type of the trigger which caused this function execution. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: For the server/consumer span on the incoming side, - // faas.trigger MUST be set.Clients invoking FaaS instances usually cannot set - // faas.trigger, - // since they would typically need to look in the payload to determine - // the event type. If clients set it, it should be the same as the - // trigger that corresponding incoming would have (i.e., this has - // nothing to do with the underlying transport used to make the API - // call to invoke the lambda, which is often HTTP). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTrigger = "faas.trigger" - // The execution ID of the current function execution. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSExecution = "faas.execution" -) - -const ( - // A response to some data source operation such as a database or filesystem read/write - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerDatasource = "datasource" - // To provide an answer to an inbound HTTP request - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerHTTP = "http" - // A function is set to be executed when messages are sent to a messaging system - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerPubsub = "pubsub" - // A function is scheduled to be executed regularly - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerTimer = "timer" - // If none of the others apply - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTriggerOther = "other" -) - -// Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write. -const ( - // The name of the source on which the triggering operation was performed. For - // example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos - // DB to the database name. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myBucketName', 'myDBName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentCollection = "faas.document.collection" - // Describes the type of the operation that was performed on the data. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperation = "faas.document.operation" - // A string containing the time when the data was accessed in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentTime = "faas.document.time" - // The document name/table subjected to the operation. For example, in Cloud - // Storage or S3 is the name of the file, and in Cosmos DB the table name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myFile.txt', 'myTableName' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentName = "faas.document.name" -) - -const ( - // When a new object is created - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationInsert = "insert" - // When an object is modified - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationEdit = "edit" - // When an object is deleted - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSDocumentOperationDelete = "delete" -) - -// Semantic Convention for FaaS scheduled to be executed regularly. -const ( - // A string containing the function invocation time in the ISO 8601 format - // expressed in UTC. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: '2020-01-23T13:47:06Z' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSTime = "faas.time" - // A string containing the schedule period as Cron Expression. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0/5 * * * ? *' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSCron = "faas.cron" -) - -// Contains additional attributes for incoming FaaS spans. -const ( - // A boolean that is true if the serverless function is executed for the first - // time (aka cold-start). - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSColdstart = "faas.coldstart" -) - -// Contains additional attributes for outgoing FaaS spans. -const ( - // The name of the invoked function. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'my-function' - // Note: SHOULD be equal to the faas.name resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedName = "faas.invoked_name" - // The cloud provider of the invoked function. - // - // Type: Enum - // Required: Always - // Stability: stable - // Note: SHOULD be equal to the cloud.provider resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProvider = "faas.invoked_provider" - // The cloud region of the invoked function. - // - // Type: string - // Required: For some cloud providers, like AWS or GCP, the region in which a - // function is hosted is essential to uniquely identify the function and also part - // of its endpoint. Since it's part of the endpoint being called, the region is - // always known to clients. In these cases, `faas.invoked_region` MUST be set - // accordingly. If the region is unknown to the client or not required for - // identifying the invoked function, setting `faas.invoked_region` is optional. - // Stability: stable - // Examples: 'eu-central-1' - // Note: SHOULD be equal to the cloud.region resource attribute of the invoked - // function. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedRegion = "faas.invoked_region" -) - -const ( - // Alibaba Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAlibabaCloud = "alibaba_cloud" - // Amazon Web Services - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAWS = "aws" - // Microsoft Azure - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderAzure = "azure" - // Google Cloud Platform - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderGCP = "gcp" - // Tencent Cloud - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeFaaSInvokedProviderTencentCloud = "tencent_cloud" -) - -// These attributes may be used for any network related operation. -const ( - // Transport protocol used. See note below. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransport = "net.transport" - // Remote address of the peer (dotted decimal for IPv4 or RFC5952 for IPv6) - // - // Type: string - // Required: No - // Stability: stable - // Examples: '127.0.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerIP = "net.peer.ip" - // Remote port number. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 80, 8080, 443 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerPort = "net.peer.port" - // Remote hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetPeerName = "net.peer.name" - // Like net.peer.ip but for the host IP. Useful in case of a multi-IP host. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '192.168.0.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostIP = "net.host.ip" - // Like net.peer.port but for the host port. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 35555 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostPort = "net.host.port" - // Local hostname or similar, see note below. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'localhost' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostName = "net.host.name" - // The internet connection type currently being used by the host. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'wifi' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionType = "net.host.connection.type" - // This describes more details regarding the connection.type. It may be the type - // of cell technology connection, but it could be used for describing details - // about a wifi connection. - // - // Type: Enum - // Required: No - // Stability: stable - // Examples: 'LTE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtype = "net.host.connection.subtype" - // The name of the mobile carrier. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'sprint' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierName = "net.host.carrier.name" - // The mobile carrier country code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '310' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMcc = "net.host.carrier.mcc" - // The mobile carrier network code. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '001' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierMnc = "net.host.carrier.mnc" - // The ISO 3166-1 alpha-2 2-character country code associated with the mobile - // carrier network. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'DE' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostCarrierIcc = "net.host.carrier.icc" -) - -const ( - // ip_tcp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportTCP = "ip_tcp" - // ip_udp - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUDP = "ip_udp" - // Another IP-based protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportIP = "ip" - // Unix Domain socket. See below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportUnix = "unix" - // Named or anonymous pipe. See note below - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportPipe = "pipe" - // In-process communication - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportInProc = "inproc" - // Something else (non IP-based) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetTransportOther = "other" -) - -const ( - // wifi - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWifi = "wifi" - // wired - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeWired = "wired" - // cell - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeCell = "cell" - // unavailable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnavailable = "unavailable" - // unknown - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionTypeUnknown = "unknown" -) - -const ( - // GPRS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGprs = "gprs" - // EDGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEdge = "edge" - // UMTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeUmts = "umts" - // CDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma = "cdma" - // EVDO Rel. 0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdo0 = "evdo_0" - // EVDO Rev. A - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoA = "evdo_a" - // CDMA2000 1XRTT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeCdma20001xrtt = "cdma2000_1xrtt" - // HSDPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsdpa = "hsdpa" - // HSUPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHsupa = "hsupa" - // HSPA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspa = "hspa" - // IDEN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIden = "iden" - // EVDO Rev. B - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEvdoB = "evdo_b" - // LTE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLte = "lte" - // EHRPD - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeEhrpd = "ehrpd" - // HSPAP - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeHspap = "hspap" - // GSM - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeGsm = "gsm" - // TD-SCDMA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeTdScdma = "td_scdma" - // IWLAN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeIwlan = "iwlan" - // 5G NR (New Radio) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNr = "nr" - // 5G NRNSA (New Radio Non-Standalone) - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeNrnsa = "nrnsa" - // LTE CA - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeNetHostConnectionSubtypeLteCa = "lte_ca" -) - -// Operations that access some remote service. -const ( - // The service.name of the remote service. SHOULD be equal to the actual - // service.name resource attribute of the remote service if any. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AuthTokenCache' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributePeerService = "peer.service" -) - -// These attributes may be used for any operation with an authenticated and/or authorized enduser. -const ( - // Username or client_id extracted from the access token or Authorization header - // in the inbound request from outside the system. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'username' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserID = "enduser.id" - // Actual/assumed role the client is making the request under extracted from token - // or application security context. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'admin' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserRole = "enduser.role" - // Scopes or granted authorities the client currently possesses extracted from - // token or application security context. The value would come from the scope - // associated with an OAuth 2.0 Access Token or an attribute value in a SAML 2.0 - // Assertion. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'read:message, write:files' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeEnduserScope = "enduser.scope" -) - -// These attributes may be used for any operation to store information about a thread that started a span. -const ( - // Current "managed" thread ID (as opposed to OS thread ID). - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadID = "thread.id" - // Current thread name. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'main' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeThreadName = "thread.name" -) - -// These attributes allow to report this unit of code and therefore to provide more context about the span. -const ( - // The method or function name, or equivalent (usually rightmost part of the code - // unit's name). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'serveRequest' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFunction = "code.function" - // The "namespace" within which code.function is defined. Usually the - // qualified class or module name, such that code.namespace + some separator + - // code.function form a unique identifier for the code unit. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'com.example.MyHTTPService' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeNamespace = "code.namespace" - // The source code file name that identifies the code unit as uniquely as possible - // (preferably an absolute file path). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/usr/local/MyApplication/content_root/app/index.php' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeFilepath = "code.filepath" - // The line number in code.filepath best representing the operation. It SHOULD - // point within the code unit named in code.function. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 42 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeCodeLineNumber = "code.lineno" -) - -// This document defines semantic conventions for HTTP client and server Spans. -const ( - // HTTP request method. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'GET', 'POST', 'HEAD' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPMethod = "http.method" - // Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. - // Usually the fragment is not transmitted over HTTP, but if it is known, it - // should be included nevertheless. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv' - // Note: http.url MUST NOT contain credentials passed via URL in form of - // https://username:password@www.example.com/. In such case the attribute's value - // should be https://www.example.com/. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPURL = "http.url" - // The full request target as passed in a HTTP request line or equivalent. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/path/12314/?q=ddds#123' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPTarget = "http.target" - // The value of the HTTP host header. An empty Host header should also be - // reported, see note. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'www.example.org' - // Note: When the header is present but empty the attribute SHOULD be set to the - // empty string. Note that this is a valid situation that is expected in certain - // cases, according the aforementioned section of RFC 7230. When the header is not - // set the attribute MUST NOT be set. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPHost = "http.host" - // The URI scheme identifying the used protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'http', 'https' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPScheme = "http.scheme" - // HTTP response status code. - // - // Type: int - // Required: If and only if one was received/sent. - // Stability: stable - // Examples: 200 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPStatusCode = "http.status_code" - // Kind of HTTP protocol used. - // - // Type: Enum - // Required: No - // Stability: stable - // Note: If net.transport is not specified, it can be assumed to be IP.TCP except - // if http.flavor is QUIC, in which case IP.UDP is assumed. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavor = "http.flavor" - // Value of the HTTP User-Agent header sent by the client. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'CERN-LineMode/2.15 libwww/2.17b3' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPUserAgent = "http.user_agent" - // The size of the request payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLength = "http.request_content_length" - // The size of the uncompressed request payload body after transport decoding. Not - // set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRequestContentLengthUncompressed = "http.request_content_length_uncompressed" - // The size of the response payload body in bytes. This is the number of bytes - // transferred excluding headers and is often, but not always, present as the - // Content-Length header. For requests using transport encoding, this should be - // the compressed size. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 3495 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLength = "http.response_content_length" - // The size of the uncompressed response payload body after transport decoding. - // Not set if transport encoding not used. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 5493 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPResponseContentLengthUncompressed = "http.response_content_length_uncompressed" -) - -const ( - // HTTP 1.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP10 = "1.0" - // HTTP 1.1 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP11 = "1.1" - // HTTP 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorHTTP20 = "2.0" - // SPDY protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorSPDY = "SPDY" - // QUIC protocol - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPFlavorQUIC = "QUIC" -) - -// Semantic Convention for HTTP Server -const ( - // The primary server name of the matched virtual host. This should be obtained - // via configuration. If no such configuration can be obtained, this attribute - // MUST NOT be set ( net.host.name should be used instead). - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'example.com' - // Note: http.url is usually not readily available on the server side but would - // have to be assembled in a cumbersome and sometimes lossy process from other - // information (see e.g. open-telemetry/opentelemetry-python/pull/148). It is thus - // preferred to supply the raw data that is available. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPServerName = "http.server_name" - // The matched route (path template). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '/users/:userID?' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPRoute = "http.route" - // The IP address of the original client behind all proxies, if known (e.g. from - // X-Forwarded-For). - // - // Type: string - // Required: No - // Stability: stable - // Examples: '83.164.160.102' - // Note: This is not necessarily the same as net.peer.ip, which would - // identify the network-level peer, which may be a proxy.This attribute should be - // set when a source of information different - // from the one used for net.peer.ip, is available even if that other - // source just confirms the same value as net.peer.ip. - // Rationale: For net.peer.ip, one typically does not know if it - // comes from a proxy, reverse proxy, or the actual client. Setting - // http.client_ip when it's the same as net.peer.ip means that - // one is at least somewhat confident that the address is not that of - // the closest proxy. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeHTTPClientIP = "http.client_ip" -) - -// Attributes that exist for multiple DynamoDB request types. -const ( - // The keys in the RequestItems object field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'Users', 'Cats' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableNames = "aws.dynamodb.table_names" - // The JSON-serialized value of each item in the ConsumedCapacity response field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { - // "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, - // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, - // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": - // "string", "WriteCapacityUnits": number }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsumedCapacity = "aws.dynamodb.consumed_capacity" - // The JSON-serialized value of the ItemCollectionMetrics response field. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, - // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : - // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": - // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBItemCollectionMetrics = "aws.dynamodb.item_collection_metrics" - // The value of the ProvisionedThroughput.ReadCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedReadCapacity = "aws.dynamodb.provisioned_read_capacity" - // The value of the ProvisionedThroughput.WriteCapacityUnits request parameter. - // - // Type: double - // Required: No - // Stability: stable - // Examples: 1.0, 2.0 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProvisionedWriteCapacity = "aws.dynamodb.provisioned_write_capacity" - // The value of the ConsistentRead request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBConsistentRead = "aws.dynamodb.consistent_read" - // The value of the ProjectionExpression request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems, - // ProductReviews' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBProjection = "aws.dynamodb.projection" - // The value of the Limit request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLimit = "aws.dynamodb.limit" - // The value of the AttributesToGet request parameter. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'lives', 'id' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributesToGet = "aws.dynamodb.attributes_to_get" - // The value of the IndexName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'name_to_group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBIndexName = "aws.dynamodb.index_name" - // The value of the Select request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'ALL_ATTRIBUTES', 'COUNT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSelect = "aws.dynamodb.select" -) - -// DynamoDB.CreateTable -const ( - // The JSON-serialized value of each item of the GlobalSecondaryIndexes request - // field - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": - // number, "WriteCapacityUnits": number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexes = "aws.dynamodb.global_secondary_indexes" - // The JSON-serialized value of each item of the LocalSecondaryIndexes request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes": - // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", - // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], - // "ProjectionType": "string" } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBLocalSecondaryIndexes = "aws.dynamodb.local_secondary_indexes" -) - -// DynamoDB.ListTables -const ( - // The value of the ExclusiveStartTableName request parameter. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Users', 'CatsTable' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBExclusiveStartTable = "aws.dynamodb.exclusive_start_table" - // The the number of items in the TableNames response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 20 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTableCount = "aws.dynamodb.table_count" -) - -// DynamoDB.Query -const ( - // The value of the ScanIndexForward request parameter. - // - // Type: boolean - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScanForward = "aws.dynamodb.scan_forward" -) - -// DynamoDB.Scan -const ( - // The value of the Segment request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBSegment = "aws.dynamodb.segment" - // The value of the TotalSegments request parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBTotalSegments = "aws.dynamodb.total_segments" - // The value of the Count response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 10 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBCount = "aws.dynamodb.count" - // The value of the ScannedCount response parameter. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 50 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBScannedCount = "aws.dynamodb.scanned_count" -) - -// DynamoDB.UpdateTable -const ( - // The JSON-serialized value of each item in the AttributeDefinitions request - // field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "AttributeName": "string", "AttributeType": "string" }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBAttributeDefinitions = "aws.dynamodb.attribute_definitions" - // The JSON-serialized value of each item in the the GlobalSecondaryIndexUpdates - // request field. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ { - // "AttributeName": "string", "KeyType": "string" } ], "Projection": { - // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, - // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": - // number } }' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates = "aws.dynamodb.global_secondary_index_updates" -) - -// This document defines the attributes used in messaging systems. -const ( - // A string identifying the messaging system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'kafka', 'rabbitmq', 'rocketmq', 'activemq', 'AmazonSQS' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingSystem = "messaging.system" - // The message destination name. This might be equal to the span name but is - // required nevertheless. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'MyQueue', 'MyTopic' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestination = "messaging.destination" - // The kind of message destination - // - // Type: Enum - // Required: Required only if the message destination is either a `queue` or - // `topic`. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKind = "messaging.destination_kind" - // A boolean that is true if the message destination is temporary. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingTempDestination = "messaging.temp_destination" - // The name of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'AMQP', 'MQTT' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocol = "messaging.protocol" - // The version of the transport protocol. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '0.9.1' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingProtocolVersion = "messaging.protocol_version" - // Connection string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'tibjmsnaming://localhost:7222', - // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingURL = "messaging.url" - // A value used by the messaging system as an identifier for the message, - // represented as a string. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '452a7c7c7c7048c2f887f61572b18fc2' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessageID = "messaging.message_id" - // The conversation ID identifying the conversation to which the message belongs, - // represented as a string. Sometimes called "Correlation ID". - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'MyConversationID' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConversationID = "messaging.conversation_id" - // The (uncompressed) size of the message payload in bytes. Also use this - // attribute if it is unknown whether the compressed or uncompressed payload size - // is reported. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2738 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadSizeBytes = "messaging.message_payload_size_bytes" - // The compressed size of the message payload in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2048 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingMessagePayloadCompressedSizeBytes = "messaging.message_payload_compressed_size_bytes" -) - -const ( - // A message sent to a queue - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindQueue = "queue" - // A message sent to a topic - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingDestinationKindTopic = "topic" -) - -// Semantic convention for a consumer of messages received from a messaging system -const ( - // A string identifying the kind of message consumption as defined in the - // Operation names section above. If the operation is "send", this - // attribute MUST NOT be set, since the operation can be inferred from the span - // kind in that case. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperation = "messaging.operation" - // The identifier for the consumer receiving a message. For Kafka, set it to - // {messaging.kafka.consumer_group} - {messaging.kafka.client_id}, if both are - // present, or only messaging.kafka.consumer_group. For brokers, such as RabbitMQ - // and Artemis, set it to the client_id of the client consuming the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'mygroup - client-6' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingConsumerID = "messaging.consumer_id" -) - -const ( - // receive - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationReceive = "receive" - // process - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingOperationProcess = "process" -) - -// Attributes for RabbitMQ -const ( - // RabbitMQ message routing key. - // - // Type: string - // Required: Unless it is empty. - // Stability: stable - // Examples: 'myKey' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRabbitmqRoutingKey = "messaging.rabbitmq.routing_key" -) - -// Attributes for Apache Kafka -const ( - // Message keys in Kafka are used for grouping alike messages to ensure they're - // processed on the same partition. They differ from messaging.message_id in that - // they're not unique. If the key is null, the attribute MUST NOT be set. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'myKey' - // Note: If the key type is not string, it's string representation has to be - // supplied for the attribute. If the key has no unambiguous, canonical string - // form, don't include its value. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaMessageKey = "messaging.kafka.message_key" - // Name of the Kafka Consumer Group that is handling the message. Only applies to - // consumers, not producers. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'my-group' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaConsumerGroup = "messaging.kafka.consumer_group" - // Client ID for the Consumer or Producer that is handling the message. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'client-5' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaClientID = "messaging.kafka.client_id" - // Partition the message is sent to. - // - // Type: int - // Required: No - // Stability: stable - // Examples: 2 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaPartition = "messaging.kafka.partition" - // A boolean that is true if the message is a tombstone. - // - // Type: boolean - // Required: If missing, it is assumed to be false. - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingKafkaTombstone = "messaging.kafka.tombstone" -) - -// Attributes for Apache RocketMQ -const ( - // Namespace of RocketMQ resources, resources in different namespaces are - // individual. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myNamespace' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqNamespace = "messaging.rocketmq.namespace" - // Name of the RocketMQ producer/consumer group that is handling the message. The - // client type is identified by the SpanKind. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myConsumerGroup' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqClientGroup = "messaging.rocketmq.client_group" - // The unique identifier for each client. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'myhost@8742@s8083jm' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqClientID = "messaging.rocketmq.client_id" - // Type of message. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageType = "messaging.rocketmq.message_type" - // The secondary classifier of message besides topic. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'tagA' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTag = "messaging.rocketmq.message_tag" - // Key(s) of message, another way to mark message besides message id. - // - // Type: string[] - // Required: No - // Stability: stable - // Examples: 'keyA', 'keyB' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageKeys = "messaging.rocketmq.message_keys" - // Model of message consumption. This only applies to consumer spans. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqConsumptionModel = "messaging.rocketmq.consumption_model" -) - -const ( - // Normal message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeNormal = "normal" - // FIFO message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeFifo = "fifo" - // Delay message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeDelay = "delay" - // Transaction message - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqMessageTypeTransaction = "transaction" -) - -const ( - // Clustering consumption model - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqConsumptionModelClustering = "clustering" - // Broadcasting consumption model - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessagingRocketmqConsumptionModelBroadcasting = "broadcasting" -) - -// This document defines semantic conventions for remote procedure calls. -const ( - // A string identifying the remoting system. - // - // Type: string - // Required: Always - // Stability: stable - // Examples: 'grpc', 'java_rmi', 'wcf' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCSystem = "rpc.system" - // The full (logical) name of the service being called, including its package - // name, if applicable. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'myservice.EchoService' - // Note: This is the logical name of the service from the RPC interface - // perspective, which can be different from the name of any implementing class. - // The code.namespace attribute may be used to store the latter (despite the - // attribute name, it may include a class name; e.g., class with method actually - // executing the call on the server side, RPC client stub class on the client - // side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCService = "rpc.service" - // The name of the (logical) method being called, must be equal to the $method - // part in the span name. - // - // Type: string - // Required: No, but recommended - // Stability: stable - // Examples: 'exampleMethod' - // Note: This is the logical name of the method from the RPC interface - // perspective, which can be different from the name of any implementing - // method/function. The code.function attribute may be used to store the latter - // (e.g., method actually executing the call on the server side, RPC client stub - // method on the client side). - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCMethod = "rpc.method" -) - -// Tech-specific attributes for gRPC. -const ( - // The numeric status code of the gRPC request. - // - // Type: Enum - // Required: Always - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCode = "rpc.grpc.status_code" -) - -const ( - // OK - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOk = "0" - // CANCELLED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeCancelled = "1" - // UNKNOWN - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnknown = "2" - // INVALID_ARGUMENT - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInvalidArgument = "3" - // DEADLINE_EXCEEDED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDeadlineExceeded = "4" - // NOT_FOUND - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeNotFound = "5" - // ALREADY_EXISTS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAlreadyExists = "6" - // PERMISSION_DENIED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodePermissionDenied = "7" - // RESOURCE_EXHAUSTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeResourceExhausted = "8" - // FAILED_PRECONDITION - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeFailedPrecondition = "9" - // ABORTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeAborted = "10" - // OUT_OF_RANGE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeOutOfRange = "11" - // UNIMPLEMENTED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnimplemented = "12" - // INTERNAL - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeInternal = "13" - // UNAVAILABLE - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnavailable = "14" - // DATA_LOSS - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeDataLoss = "15" - // UNAUTHENTICATED - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCGRPCStatusCodeUnauthenticated = "16" -) - -// Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/). -const ( - // Protocol version as in jsonrpc property of request/response. Since JSON-RPC 1.0 - // does not specify this, the value can be omitted. - // - // Type: string - // Required: If missing, it is assumed to be "1.0". - // Stability: stable - // Examples: '2.0', '1.0' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcVersion = "rpc.jsonrpc.version" - // id property of request or response. Since protocol allows id to be int, string, - // null or missing (for notifications), value is expected to be cast to string for - // simplicity. Use empty string in case of null value. Omit entirely if this is a - // notification. - // - // Type: string - // Required: No - // Stability: stable - // Examples: '10', 'request-7', '' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcRequestID = "rpc.jsonrpc.request_id" - // error.code property of response if it is an error response. - // - // Type: int - // Required: If missing, response is assumed to be successful. - // Stability: stable - // Examples: -32700, 100 - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorCode = "rpc.jsonrpc.error_code" - // error.message property of response if it is an error response. - // - // Type: string - // Required: No - // Stability: stable - // Examples: 'Parse error', 'User already exists' - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeRPCJsonrpcErrorMessage = "rpc.jsonrpc.error_message" -) - -// RPC received/sent message. -const ( - // Whether this is a received or sent message. - // - // Type: Enum - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageType = "message.type" - // MUST be calculated as two different counters starting from 1 one for sent - // messages and one for received message. - // - // Type: int - // Required: No - // Stability: stable - // Note: This way we guarantee that the values will be consistent between - // different implementations. - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageID = "message.id" - // Compressed size of the message in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageCompressedSize = "message.compressed_size" - // Uncompressed size of the message in bytes. - // - // Type: int - // Required: No - // Stability: stable - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageUncompressedSize = "message.uncompressed_size" -) - -const ( - // sent - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageTypeSent = "SENT" - // received - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - AttributeMessageTypeReceived = "RECEIVED" -) - -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -func GetTraceSemanticConventionAttributeNames() []string { - return []string{ - AttributeAWSLambdaInvokedARN, - AttributeOpentracingRefType, - AttributeDBSystem, - AttributeDBConnectionString, - AttributeDBUser, - AttributeDBJDBCDriverClassname, - AttributeDBName, - AttributeDBStatement, - AttributeDBOperation, - AttributeDBMSSQLInstanceName, - AttributeDBCassandraPageSize, - AttributeDBCassandraConsistencyLevel, - AttributeDBCassandraTable, - AttributeDBCassandraIdempotence, - AttributeDBCassandraSpeculativeExecutionCount, - AttributeDBCassandraCoordinatorID, - AttributeDBCassandraCoordinatorDC, - AttributeDBRedisDBIndex, - AttributeDBMongoDBCollection, - AttributeDBSQLTable, - AttributeExceptionType, - AttributeExceptionMessage, - AttributeExceptionStacktrace, - AttributeExceptionEscaped, - AttributeFaaSTrigger, - AttributeFaaSExecution, - AttributeFaaSDocumentCollection, - AttributeFaaSDocumentOperation, - AttributeFaaSDocumentTime, - AttributeFaaSDocumentName, - AttributeFaaSTime, - AttributeFaaSCron, - AttributeFaaSColdstart, - AttributeFaaSInvokedName, - AttributeFaaSInvokedProvider, - AttributeFaaSInvokedRegion, - AttributeNetTransport, - AttributeNetPeerIP, - AttributeNetPeerPort, - AttributeNetPeerName, - AttributeNetHostIP, - AttributeNetHostPort, - AttributeNetHostName, - AttributeNetHostConnectionType, - AttributeNetHostConnectionSubtype, - AttributeNetHostCarrierName, - AttributeNetHostCarrierMcc, - AttributeNetHostCarrierMnc, - AttributeNetHostCarrierIcc, - AttributePeerService, - AttributeEnduserID, - AttributeEnduserRole, - AttributeEnduserScope, - AttributeThreadID, - AttributeThreadName, - AttributeCodeFunction, - AttributeCodeNamespace, - AttributeCodeFilepath, - AttributeCodeLineNumber, - AttributeHTTPMethod, - AttributeHTTPURL, - AttributeHTTPTarget, - AttributeHTTPHost, - AttributeHTTPScheme, - AttributeHTTPStatusCode, - AttributeHTTPFlavor, - AttributeHTTPUserAgent, - AttributeHTTPRequestContentLength, - AttributeHTTPRequestContentLengthUncompressed, - AttributeHTTPResponseContentLength, - AttributeHTTPResponseContentLengthUncompressed, - AttributeHTTPServerName, - AttributeHTTPRoute, - AttributeHTTPClientIP, - AttributeAWSDynamoDBTableNames, - AttributeAWSDynamoDBConsumedCapacity, - AttributeAWSDynamoDBItemCollectionMetrics, - AttributeAWSDynamoDBProvisionedReadCapacity, - AttributeAWSDynamoDBProvisionedWriteCapacity, - AttributeAWSDynamoDBConsistentRead, - AttributeAWSDynamoDBProjection, - AttributeAWSDynamoDBLimit, - AttributeAWSDynamoDBAttributesToGet, - AttributeAWSDynamoDBIndexName, - AttributeAWSDynamoDBSelect, - AttributeAWSDynamoDBGlobalSecondaryIndexes, - AttributeAWSDynamoDBLocalSecondaryIndexes, - AttributeAWSDynamoDBExclusiveStartTable, - AttributeAWSDynamoDBTableCount, - AttributeAWSDynamoDBScanForward, - AttributeAWSDynamoDBSegment, - AttributeAWSDynamoDBTotalSegments, - AttributeAWSDynamoDBCount, - AttributeAWSDynamoDBScannedCount, - AttributeAWSDynamoDBAttributeDefinitions, - AttributeAWSDynamoDBGlobalSecondaryIndexUpdates, - AttributeMessagingSystem, - AttributeMessagingDestination, - AttributeMessagingDestinationKind, - AttributeMessagingTempDestination, - AttributeMessagingProtocol, - AttributeMessagingProtocolVersion, - AttributeMessagingURL, - AttributeMessagingMessageID, - AttributeMessagingConversationID, - AttributeMessagingMessagePayloadSizeBytes, - AttributeMessagingMessagePayloadCompressedSizeBytes, - AttributeMessagingOperation, - AttributeMessagingConsumerID, - AttributeMessagingRabbitmqRoutingKey, - AttributeMessagingKafkaMessageKey, - AttributeMessagingKafkaConsumerGroup, - AttributeMessagingKafkaClientID, - AttributeMessagingKafkaPartition, - AttributeMessagingKafkaTombstone, - AttributeMessagingRocketmqNamespace, - AttributeMessagingRocketmqClientGroup, - AttributeMessagingRocketmqClientID, - AttributeMessagingRocketmqMessageType, - AttributeMessagingRocketmqMessageTag, - AttributeMessagingRocketmqMessageKeys, - AttributeMessagingRocketmqConsumptionModel, - AttributeRPCSystem, - AttributeRPCService, - AttributeRPCMethod, - AttributeRPCGRPCStatusCode, - AttributeRPCJsonrpcVersion, - AttributeRPCJsonrpcRequestID, - AttributeRPCJsonrpcErrorCode, - AttributeRPCJsonrpcErrorMessage, - AttributeMessageType, - AttributeMessageID, - AttributeMessageCompressedSize, - AttributeMessageUncompressedSize, - } -} diff --git a/model/semconv/v1.9.0/nonstandard.go b/model/semconv/v1.9.0/nonstandard.go deleted file mode 100644 index 2958af1bf41..00000000000 --- a/model/semconv/v1.9.0/nonstandard.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.9.0" - -const ( - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryName = "otel.library.name" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelLibraryVersion = "otel.library.version" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusCode = "otel.status_code" - // Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. - OtelStatusDescription = "otel.status_description" -) diff --git a/model/semconv/v1.9.0/schema.go b/model/semconv/v1.9.0/schema.go deleted file mode 100644 index 5592dc08c43..00000000000 --- a/model/semconv/v1.9.0/schema.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright The OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package semconv // import "go.opentelemetry.io/collector/model/semconv/v1.9.0" - -// SchemaURL is the schema URL that matches the version of the semantic conventions -// that this package defines. Conventions packages starting from v1.4.0 must declare -// non-empty schema URL in the form https://opentelemetry.io/schemas/ -// Deprecated: [v0.50.0] Use go.opentelemetry.io/collector/semconv module. -const SchemaURL = "https://opentelemetry.io/schemas/1.9.0" diff --git a/versions.yaml b/versions.yaml index ce7597bc583..0ad42428d9d 100644 --- a/versions.yaml +++ b/versions.yaml @@ -18,7 +18,6 @@ module-sets: modules: - go.opentelemetry.io/collector - go.opentelemetry.io/collector/cmd/builder - - go.opentelemetry.io/collector/model - go.opentelemetry.io/collector/semconv - go.opentelemetry.io/collector/pdata excluded-modules: