From 3c49ce84354116eea9317846210fecc2e2b3db63 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 28 Apr 2022 14:35:43 -0700 Subject: [PATCH 01/67] Remove deprecated model module, everything is available in pdata and semconv (#5281) Signed-off-by: Bogdan Drutu --- .github/dependabot.yml | 4 - CHANGELOG.md | 3 + 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 - 47 files changed, 3 insertions(+), 16945 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/.github/dependabot.yml b/.github/dependabot.yml index e844426ce6e..7f1a3b5442d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -22,10 +22,6 @@ updates: directory: "/internal/tools" schedule: interval: "weekly" - - package-ecosystem: "gomod" - directory: "/model" - schedule: - interval: "weekly" - package-ecosystem: "gomod" directory: "/pdata" schedule: diff --git a/CHANGELOG.md b/CHANGELOG.md index 60084a50bd1..a3386458ac9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ### 🛑 Breaking changes 🛑 +- Remove deprecated model module, everything is available in `pdata` and `semconv`. (#5281) + - Old versions of the module are still available, but no new versions will be released. + ### 🚩 Deprecations 🚩 ### 💡 Enhancements 💡 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: From 5502bddf399aaeafb3fded91a9c2249dd89f8e31 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 28 Apr 2022 15:18:05 -0700 Subject: [PATCH 02/67] Bump github/codeql-action from 1 to 2 (#5282) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v1...v2) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/codeql-analysis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 396ccbc5b28..730b813fd8a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -19,12 +19,12 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: go - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 From 9a906d94076668960a2bb98462ea9d8da4e0205e Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 28 Apr 2022 15:27:41 -0700 Subject: [PATCH 03/67] [docs] update to release documentation (#5289) Note i've swapped jpkrohling for the 0.52.0 release as he's out for a few months. --- docs/release.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/release.md b/docs/release.md index f188d12cd4d..91741def370 100644 --- a/docs/release.md +++ b/docs/release.md @@ -25,9 +25,9 @@ It is possible that a core approver isn't a contrib approver. In that case, the ## Releasing opentelemetry-collector -1. Make sure that there are no open issues with `release:blocker` label in Core or Contrib repo. The release has to be delayed until they are resolved. +1. Make sure that there are no open issues with `release:blocker` label in [Core](https://github.com/open-telemetry/opentelemetry-collector/labels/release%3Ablocker) or [Contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/labels/release%3Ablocker) repo. The release has to be delayed until they are resolved. -1. Make sure the current `main` branch build successfully passes (Core and Contrib). +1. Make sure the current `main` branch build successfully passes ([Core](https://github.com/open-telemetry/opentelemetry-collector/actions/workflows/build-and-test.yml?query=branch%3Amain) and [Contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/workflows/build-and-test.yml?query=branch%3Amain)). 1. Determine the version number that will be assigned to the release. During the beta phase, we increment the minor version number and set the patch number to 0. In this document, we are using `v0.45.0` as the version to be released, following `v0.44.0`. @@ -113,10 +113,10 @@ The last step of the release process creates artifacts for the new version of th | Date | Version | Release manager | |------------|---------|-----------------| -| 2022-04-27 | v0.50.0 | @codeboten | | 2022-05-11 | v0.51.0 | @bogdandrutu | -| 2022-05-25 | v0.52.0 | @jpkrohling | +| 2022-05-25 | v0.52.0 | @codeboten | | 2022-06-01 | v0.53.0 | @Aneurysm9 | | 2022-06-15 | v0.54.0 | @mx-psi | | 2022-06-29 | v0.55.0 | @tigrannajaryan | | 2022-07-13 | v0.56.0 | @dmitryax | +| 2022-07-27 | v0.57.0 | @jpkrohling | From 128dd6a9c3633d3933ac71ff46158977e9f5858a Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 28 Apr 2022 15:59:09 -0700 Subject: [PATCH 04/67] Address feedback about existing code from 5248 (#5273) Signed-off-by: Bogdan Drutu --- service/mapresolver.go | 37 ++++++++++++++++++++----------------- service/mapresolver_test.go | 12 ++++++------ 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/service/mapresolver.go b/service/mapresolver.go index 3da0e0fff97..eb9bfdf1b8b 100644 --- a/service/mapresolver.go +++ b/service/mapresolver.go @@ -33,7 +33,7 @@ var driverLetterRegexp = regexp.MustCompile("^[A-z]:") // mapResolver resolves a configuration as a config.Map. type mapResolver struct { - locations []string + uris []string mapProviders map[string]config.MapProvider mapConverters []config.MapConverterFunc @@ -42,10 +42,10 @@ type mapResolver struct { watcher chan error } -// newMapResolver returns a new mapResolver that resolves configuration from multiple locations. +// newMapResolver returns a new mapResolver that resolves configuration from multiple URIs. // // To resolve a configuration the following steps will happen: -// 1. Retrieves individual configurations from all given "locations", and merge them in the retrieve order. +// 1. Retrieves individual configurations from all given "URIs", and merge them in the retrieve order. // 2. Once the config.Map is merged, apply the converters in the given order. // // After the configuration was resolved the `mapResolver` can be used as a single point to watch for updates in @@ -58,18 +58,21 @@ type mapResolver struct { // mapResolver.Watch() // wait for an event. // // repeat Resolve/Watch cycle until it is time to shut down the Collector process. // mapResolver.Shutdown(ctx) -func newMapResolver(locations []string, mapProviders map[string]config.MapProvider, mapConverters []config.MapConverterFunc) (*mapResolver, error) { - if len(locations) == 0 { - return nil, fmt.Errorf("cannot create ConfigProvider: no Locations") +// +// `uri` must follow the ":" format. This format is compatible with the URI definition +// (see https://datatracker.ietf.org/doc/html/rfc3986). An empty "" defaults to "file" schema. +func newMapResolver(uris []string, mapProviders map[string]config.MapProvider, mapConverters []config.MapConverterFunc) (*mapResolver, error) { + if len(uris) == 0 { + return nil, fmt.Errorf("invalid map resolver config: no URIs") } if len(mapProviders) == 0 { - return nil, fmt.Errorf("cannot create ConfigProvider: no MapProviders") + return nil, fmt.Errorf("invalid map resolver config: no map providers") } // Safe copy, ensures the slices and maps cannot be changed from the caller. - locationsCopy := make([]string, len(locations)) - copy(locationsCopy, locations) + urisCopy := make([]string, len(uris)) + copy(urisCopy, uris) mapProvidersCopy := make(map[string]config.MapProvider, len(mapProviders)) for k, v := range mapProviders { mapProvidersCopy[k] = v @@ -78,7 +81,7 @@ func newMapResolver(locations []string, mapProviders map[string]config.MapProvid copy(mapConvertersCopy, mapConverters) return &mapResolver{ - locations: locationsCopy, + uris: urisCopy, mapProviders: mapProvidersCopy, mapConverters: mapConvertersCopy, watcher: make(chan error, 1), @@ -94,23 +97,23 @@ func (mr *mapResolver) Resolve(ctx context.Context) (*config.Map, error) { return nil, fmt.Errorf("cannot close previous watch: %w", err) } - // Retrieves individual configurations from all locations in the given order, and merge them in retMap. + // Retrieves individual configurations from all URIs in the given order, and merge them in retMap. retMap := config.NewMap() - for _, location := range mr.locations { + for _, uri := range mr.uris { // For backwards compatibility: // - empty url scheme means "file". // - "^[A-z]:" also means "file" scheme := "file" - if idx := strings.Index(location, ":"); idx != -1 && !driverLetterRegexp.MatchString(location) { - scheme = location[:idx] + if idx := strings.Index(uri, ":"); idx != -1 && !driverLetterRegexp.MatchString(uri) { + scheme = uri[:idx] } else { - location = scheme + ":" + location + uri = scheme + ":" + uri } p, ok := mr.mapProviders[scheme] if !ok { - return nil, fmt.Errorf("scheme %v is not supported for location %v", scheme, location) + return nil, fmt.Errorf("scheme %q is not supported for uri %q", scheme, uri) } - ret, err := p.Retrieve(ctx, location, mr.onChange) + ret, err := p.Retrieve(ctx, uri, mr.onChange) if err != nil { return nil, err } diff --git a/service/mapresolver_test.go b/service/mapresolver_test.go index 422492d668a..3a09f6df80c 100644 --- a/service/mapresolver_test.go +++ b/service/mapresolver_test.go @@ -180,32 +180,32 @@ func TestBackwardsCompatibilityForFilePath(t *testing.T) { { name: "unix", location: `/test`, - errMessage: "unable to read the file file:/test", + errMessage: `unable to read the file file:/test`, }, { name: "file_unix", location: `file:/test`, - errMessage: "unable to read the file file:/test", + errMessage: `unable to read the file file:/test`, }, { name: "windows_C", location: `C:\test`, - errMessage: "unable to read the file file:C:\\test", + errMessage: `unable to read the file file:C:\test`, }, { name: "windows_z", location: `z:\test`, - errMessage: "unable to read the file file:z:\\test", + errMessage: `unable to read the file file:z:\test`, }, { name: "file_windows", location: `file:C:\test`, - errMessage: "unable to read the file file:C:\\test", + errMessage: `unable to read the file file:C:\test`, }, { name: "invalid_scheme", location: `LL:\test`, - errMessage: "scheme LL is not supported for location", + errMessage: `scheme "LL" is not supported for uri "LL:\\test"`, }, } for _, tt := range tests { From 2acc422a168ab2a7a52480571f4e7d74da8a5264 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 28 Apr 2022 17:49:59 -0700 Subject: [PATCH 05/67] Upgrade otel deps to latest (#5290) Signed-off-by: Bogdan Drutu --- cmd/otelcorecol/go.mod | 18 +++++++++--------- cmd/otelcorecol/go.sum | 43 ++++++++++++++++++------------------------ go.mod | 18 +++++++++--------- go.sum | 43 ++++++++++++++++++------------------------ 4 files changed, 54 insertions(+), 68 deletions(-) diff --git a/cmd/otelcorecol/go.mod b/cmd/otelcorecol/go.mod index 0be9893b08c..d5adab9a601 100644 --- a/cmd/otelcorecol/go.mod +++ b/cmd/otelcorecol/go.mod @@ -54,15 +54,15 @@ require ( go.opencensus.io v0.23.0 // indirect go.opentelemetry.io/collector/pdata v0.50.0 // indirect go.opentelemetry.io/collector/semconv v0.50.0 // indirect - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0 // indirect - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0 // indirect - go.opentelemetry.io/contrib/zpages v0.31.0 // indirect - go.opentelemetry.io/otel v1.6.3 // indirect - go.opentelemetry.io/otel/exporters/prometheus v0.29.0 // indirect - go.opentelemetry.io/otel/metric v0.29.0 // indirect - go.opentelemetry.io/otel/sdk v1.6.3 // indirect - go.opentelemetry.io/otel/sdk/metric v0.29.0 // indirect - go.opentelemetry.io/otel/trace v1.6.3 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 // indirect + go.opentelemetry.io/contrib/zpages v0.32.0 // indirect + go.opentelemetry.io/otel v1.7.0 // indirect + go.opentelemetry.io/otel/exporters/prometheus v0.30.0 // indirect + go.opentelemetry.io/otel/metric v0.30.0 // indirect + go.opentelemetry.io/otel/sdk v1.7.0 // indirect + go.opentelemetry.io/otel/sdk/metric v0.30.0 // indirect + go.opentelemetry.io/otel/trace v1.7.0 // indirect go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.8.0 // indirect go.uber.org/zap v1.21.0 // indirect diff --git a/cmd/otelcorecol/go.sum b/cmd/otelcorecol/go.sum index a3bcacc303f..ad1fd366028 100644 --- a/cmd/otelcorecol/go.sum +++ b/cmd/otelcorecol/go.sum @@ -382,30 +382,24 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0 h1:li8u9OSMvLau7rMs8bmiL82OazG6MAkwPz2i6eS8TBQ= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0/go.mod h1:SY9qHHUES6W3oZnO1H2W8NvsSovIoXRg/A1AH9px8+I= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0 h1:woM+Mb4d0A+Dxa3rYPenSN5ZeS9qHUvE8rlObiLRXTY= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0/go.mod h1:PFmBsWbldL1kiWZk9+0LBZz2brhByaGsvp6pRICMlPE= -go.opentelemetry.io/contrib/zpages v0.31.0 h1:P75HGsEZp/TSdY0QSknzI9ubo7DU3i5MPGHM7h9IwL4= -go.opentelemetry.io/contrib/zpages v0.31.0/go.mod h1:CAB55C1K7YhinQfNNIdNLgJJ+dVRlb6zQpbGQjeIDf8= -go.opentelemetry.io/otel v1.6.0/go.mod h1:bfJD2DZVw0LBxghOTlgnlI0CV3hLDu9XF/QKOUXMTQQ= -go.opentelemetry.io/otel v1.6.1/go.mod h1:blzUabWHkX6LJewxvadmzafgh/wnvBSDBdOuwkAtrWQ= -go.opentelemetry.io/otel v1.6.3 h1:FLOfo8f9JzFVFVyU+MSRJc2HdEAXQgm7pIv2uFKRSZE= -go.opentelemetry.io/otel v1.6.3/go.mod h1:7BgNga5fNlF/iZjG06hM3yofffp0ofKCDwSXx1GC4dI= -go.opentelemetry.io/otel/exporters/prometheus v0.29.0 h1:jOrFr8pCPj52GCPNq3qd69SEug3QmqDJTzbrefUxkpw= -go.opentelemetry.io/otel/exporters/prometheus v0.29.0/go.mod h1:Er2VVJQZbHysogooLNchdZ3MLYoI7+d15mHmrRlRJCU= -go.opentelemetry.io/otel/metric v0.28.0/go.mod h1:TrzsfQAmQaB1PDcdhBauLMk7nyyg9hm+GoQq/ekE9Iw= -go.opentelemetry.io/otel/metric v0.29.0 h1:7unM/I13Dbc1VHw8lTPQ7zfNIgkhcb8BZhujXOS4jKc= -go.opentelemetry.io/otel/metric v0.29.0/go.mod h1:HahKFp1OC1RNTsuO/HNMBHHJR+dmHZ7wLARRgGDwjLQ= -go.opentelemetry.io/otel/sdk v1.6.1/go.mod h1:IVYrddmFZ+eJqu2k38qD3WezFR2pymCzm8tdxyh3R4E= -go.opentelemetry.io/otel/sdk v1.6.3 h1:prSHYdwCQOX5DrsEzxowH3nLhoAzEBdZhvrR79scfLs= -go.opentelemetry.io/otel/sdk v1.6.3/go.mod h1:A4iWF7HTXa+GWL/AaqESz28VuSBIcZ+0CV+IzJ5NMiQ= -go.opentelemetry.io/otel/sdk/metric v0.29.0 h1:OCEp2igPFXQrGxSR/nwd/bDjkPlPlOVjIULA/ob0dNw= -go.opentelemetry.io/otel/sdk/metric v0.29.0/go.mod h1:IFkFNKI8Gq8zBdqOKdODCL9+LInBZLXaGpqSIKphNuU= -go.opentelemetry.io/otel/trace v1.6.0/go.mod h1:qs7BrU5cZ8dXQHBGxHMOxwME/27YH2qEp4/+tZLLwJE= -go.opentelemetry.io/otel/trace v1.6.1/go.mod h1:RkFRM1m0puWIq10oxImnGEduNBzxiN7TXluRBtE+5j0= -go.opentelemetry.io/otel/trace v1.6.3 h1:IqN4L+5b0mPNjdXIiZ90Ni4Bl5BRkDQywePLWemd9bc= -go.opentelemetry.io/otel/trace v1.6.3/go.mod h1:GNJQusJlUgZl9/TQBPKU/Y/ty+0iVB5fjhKeJGZPGFs= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 h1:WenoaOMNP71oq3KkMZ/jnxI9xU/JSCLw8yZILSI2lfU= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0/go.mod h1:J0dBVrt7dPS/lKJyQoW0xzQiUr4r2Ik1VwPjAUWnofI= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 h1:mac9BKRqwaX6zxHPDe3pvmWpwuuIM0vuXv2juCnQevE= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0/go.mod h1:5eCOqeGphOyz6TsY3ZDNjE33SM/TFAK3RGuCL2naTgY= +go.opentelemetry.io/contrib/zpages v0.32.0 h1:AVKTx5ppWDaem7A61HFsO1T3CK/t6kFRQoZQMj0/TW4= +go.opentelemetry.io/contrib/zpages v0.32.0/go.mod h1:Jx75I61RDcZU3d/1WrP6UdINlzGGLAwFNdQ3bCTb+qw= +go.opentelemetry.io/otel v1.7.0 h1:Z2lA3Tdch0iDcrhJXDIlC94XE+bxok1F9B+4Lz/lGsM= +go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= +go.opentelemetry.io/otel/exporters/prometheus v0.30.0 h1:YXo5ZY5nofaEYMCMTTMaRH2cLDZB8+0UGuk5RwMfIo0= +go.opentelemetry.io/otel/exporters/prometheus v0.30.0/go.mod h1:qN5feW+0/d661KDtJuATEmHtw5bKBK7NSvNEP927zSs= +go.opentelemetry.io/otel/metric v0.30.0 h1:Hs8eQZ8aQgs0U49diZoaS6Uaxw3+bBE3lcMUKBFIk3c= +go.opentelemetry.io/otel/metric v0.30.0/go.mod h1:/ShZ7+TS4dHzDFmfi1kSXMhMVubNoP0oIaBp70J6UXU= +go.opentelemetry.io/otel/sdk v1.7.0 h1:4OmStpcKVOfvDOgCt7UriAPtKolwIhxpnSNI/yK+1B0= +go.opentelemetry.io/otel/sdk v1.7.0/go.mod h1:uTEOTwaqIVuTGiJN7ii13Ibp75wJmYUDe374q6cZwUU= +go.opentelemetry.io/otel/sdk/metric v0.30.0 h1:XTqQ4y3erR2Oj8xSAOL5ovO5011ch2ELg51z4fVkpME= +go.opentelemetry.io/otel/sdk/metric v0.30.0/go.mod h1:8AKFRi5HyvTR0RRty3paN1aMC9HMT+NzcEhw/BLkLX8= +go.opentelemetry.io/otel/trace v1.7.0 h1:O37Iogk1lEkMRXewVtZ1BBTVn5JEp8GrJvP92bJqC6o= +go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= @@ -699,7 +693,6 @@ google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= 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= diff --git a/go.mod b/go.mod index 02cfcb0b244..a39100fc1ab 100644 --- a/go.mod +++ b/go.mod @@ -22,15 +22,15 @@ require ( go.opencensus.io v0.23.0 go.opentelemetry.io/collector/pdata v0.50.0 go.opentelemetry.io/collector/semconv v0.50.0 - go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0 - go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0 - go.opentelemetry.io/contrib/zpages v0.31.0 - go.opentelemetry.io/otel v1.6.3 - go.opentelemetry.io/otel/exporters/prometheus v0.29.0 - go.opentelemetry.io/otel/metric v0.29.0 - go.opentelemetry.io/otel/sdk v1.6.3 - go.opentelemetry.io/otel/sdk/metric v0.29.0 - go.opentelemetry.io/otel/trace v1.6.3 + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 + go.opentelemetry.io/contrib/zpages v0.32.0 + go.opentelemetry.io/otel v1.7.0 + go.opentelemetry.io/otel/exporters/prometheus v0.30.0 + go.opentelemetry.io/otel/metric v0.30.0 + go.opentelemetry.io/otel/sdk v1.7.0 + go.opentelemetry.io/otel/sdk/metric v0.30.0 + go.opentelemetry.io/otel/trace v1.7.0 go.uber.org/atomic v1.9.0 go.uber.org/multierr v1.8.0 go.uber.org/zap v1.21.0 diff --git a/go.sum b/go.sum index f7cb18f7c67..999852aa46f 100644 --- a/go.sum +++ b/go.sum @@ -384,30 +384,24 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.23.0 h1:gqCw0LfLxScz8irSi8exQc7fyQ0fKQU/qnC/X8+V/1M= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0 h1:li8u9OSMvLau7rMs8bmiL82OazG6MAkwPz2i6eS8TBQ= -go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.31.0/go.mod h1:SY9qHHUES6W3oZnO1H2W8NvsSovIoXRg/A1AH9px8+I= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0 h1:woM+Mb4d0A+Dxa3rYPenSN5ZeS9qHUvE8rlObiLRXTY= -go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.31.0/go.mod h1:PFmBsWbldL1kiWZk9+0LBZz2brhByaGsvp6pRICMlPE= -go.opentelemetry.io/contrib/zpages v0.31.0 h1:P75HGsEZp/TSdY0QSknzI9ubo7DU3i5MPGHM7h9IwL4= -go.opentelemetry.io/contrib/zpages v0.31.0/go.mod h1:CAB55C1K7YhinQfNNIdNLgJJ+dVRlb6zQpbGQjeIDf8= -go.opentelemetry.io/otel v1.6.0/go.mod h1:bfJD2DZVw0LBxghOTlgnlI0CV3hLDu9XF/QKOUXMTQQ= -go.opentelemetry.io/otel v1.6.1/go.mod h1:blzUabWHkX6LJewxvadmzafgh/wnvBSDBdOuwkAtrWQ= -go.opentelemetry.io/otel v1.6.3 h1:FLOfo8f9JzFVFVyU+MSRJc2HdEAXQgm7pIv2uFKRSZE= -go.opentelemetry.io/otel v1.6.3/go.mod h1:7BgNga5fNlF/iZjG06hM3yofffp0ofKCDwSXx1GC4dI= -go.opentelemetry.io/otel/exporters/prometheus v0.29.0 h1:jOrFr8pCPj52GCPNq3qd69SEug3QmqDJTzbrefUxkpw= -go.opentelemetry.io/otel/exporters/prometheus v0.29.0/go.mod h1:Er2VVJQZbHysogooLNchdZ3MLYoI7+d15mHmrRlRJCU= -go.opentelemetry.io/otel/metric v0.28.0/go.mod h1:TrzsfQAmQaB1PDcdhBauLMk7nyyg9hm+GoQq/ekE9Iw= -go.opentelemetry.io/otel/metric v0.29.0 h1:7unM/I13Dbc1VHw8lTPQ7zfNIgkhcb8BZhujXOS4jKc= -go.opentelemetry.io/otel/metric v0.29.0/go.mod h1:HahKFp1OC1RNTsuO/HNMBHHJR+dmHZ7wLARRgGDwjLQ= -go.opentelemetry.io/otel/sdk v1.6.1/go.mod h1:IVYrddmFZ+eJqu2k38qD3WezFR2pymCzm8tdxyh3R4E= -go.opentelemetry.io/otel/sdk v1.6.3 h1:prSHYdwCQOX5DrsEzxowH3nLhoAzEBdZhvrR79scfLs= -go.opentelemetry.io/otel/sdk v1.6.3/go.mod h1:A4iWF7HTXa+GWL/AaqESz28VuSBIcZ+0CV+IzJ5NMiQ= -go.opentelemetry.io/otel/sdk/metric v0.29.0 h1:OCEp2igPFXQrGxSR/nwd/bDjkPlPlOVjIULA/ob0dNw= -go.opentelemetry.io/otel/sdk/metric v0.29.0/go.mod h1:IFkFNKI8Gq8zBdqOKdODCL9+LInBZLXaGpqSIKphNuU= -go.opentelemetry.io/otel/trace v1.6.0/go.mod h1:qs7BrU5cZ8dXQHBGxHMOxwME/27YH2qEp4/+tZLLwJE= -go.opentelemetry.io/otel/trace v1.6.1/go.mod h1:RkFRM1m0puWIq10oxImnGEduNBzxiN7TXluRBtE+5j0= -go.opentelemetry.io/otel/trace v1.6.3 h1:IqN4L+5b0mPNjdXIiZ90Ni4Bl5BRkDQywePLWemd9bc= -go.opentelemetry.io/otel/trace v1.6.3/go.mod h1:GNJQusJlUgZl9/TQBPKU/Y/ty+0iVB5fjhKeJGZPGFs= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 h1:WenoaOMNP71oq3KkMZ/jnxI9xU/JSCLw8yZILSI2lfU= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0/go.mod h1:J0dBVrt7dPS/lKJyQoW0xzQiUr4r2Ik1VwPjAUWnofI= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 h1:mac9BKRqwaX6zxHPDe3pvmWpwuuIM0vuXv2juCnQevE= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0/go.mod h1:5eCOqeGphOyz6TsY3ZDNjE33SM/TFAK3RGuCL2naTgY= +go.opentelemetry.io/contrib/zpages v0.32.0 h1:AVKTx5ppWDaem7A61HFsO1T3CK/t6kFRQoZQMj0/TW4= +go.opentelemetry.io/contrib/zpages v0.32.0/go.mod h1:Jx75I61RDcZU3d/1WrP6UdINlzGGLAwFNdQ3bCTb+qw= +go.opentelemetry.io/otel v1.7.0 h1:Z2lA3Tdch0iDcrhJXDIlC94XE+bxok1F9B+4Lz/lGsM= +go.opentelemetry.io/otel v1.7.0/go.mod h1:5BdUoMIz5WEs0vt0CUEMtSSaTSHBBVwrhnz7+nrD5xk= +go.opentelemetry.io/otel/exporters/prometheus v0.30.0 h1:YXo5ZY5nofaEYMCMTTMaRH2cLDZB8+0UGuk5RwMfIo0= +go.opentelemetry.io/otel/exporters/prometheus v0.30.0/go.mod h1:qN5feW+0/d661KDtJuATEmHtw5bKBK7NSvNEP927zSs= +go.opentelemetry.io/otel/metric v0.30.0 h1:Hs8eQZ8aQgs0U49diZoaS6Uaxw3+bBE3lcMUKBFIk3c= +go.opentelemetry.io/otel/metric v0.30.0/go.mod h1:/ShZ7+TS4dHzDFmfi1kSXMhMVubNoP0oIaBp70J6UXU= +go.opentelemetry.io/otel/sdk v1.7.0 h1:4OmStpcKVOfvDOgCt7UriAPtKolwIhxpnSNI/yK+1B0= +go.opentelemetry.io/otel/sdk v1.7.0/go.mod h1:uTEOTwaqIVuTGiJN7ii13Ibp75wJmYUDe374q6cZwUU= +go.opentelemetry.io/otel/sdk/metric v0.30.0 h1:XTqQ4y3erR2Oj8xSAOL5ovO5011ch2ELg51z4fVkpME= +go.opentelemetry.io/otel/sdk/metric v0.30.0/go.mod h1:8AKFRi5HyvTR0RRty3paN1aMC9HMT+NzcEhw/BLkLX8= +go.opentelemetry.io/otel/trace v1.7.0 h1:O37Iogk1lEkMRXewVtZ1BBTVn5JEp8GrJvP92bJqC6o= +go.opentelemetry.io/otel/trace v1.7.0/go.mod h1:fzLSB9nqR2eXzxPXb2JW9IKE+ScyXA48yyE4TNvoHqU= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= @@ -701,7 +695,6 @@ google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= 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= From 4b811dc3f377c243d190e879aa28610f64e8dffa Mon Sep 17 00:00:00 2001 From: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> Date: Fri, 29 Apr 2022 10:58:17 -0400 Subject: [PATCH 06/67] Update OTLP to 0.16.0 (#5202) * Update OTLP to 0.16.0 Removed LogRecord.Name field (was deprecated earlier) * Update OTLP to 0.16.0 Removed LogRecord.Name field (was deprecated earlier). --- CHANGELOG.md | 1 + Makefile | 2 +- .../cmd/pdatagen/internal/log_structs.go | 8 - .../internal/data/protogen/logs/v1/logs.pb.go | 182 ++++++------------ pdata/internal/generated_plog.go | 15 -- pdata/internal/generated_plog_test.go | 9 - 6 files changed, 64 insertions(+), 153 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3386458ac9..a22084c03da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Remove deprecated model module, everything is available in `pdata` and `semconv`. (#5281) - Old versions of the module are still available, but no new versions will be released. +- Remove deprecated LogRecord.Name field. (#5202) ### 🚩 Deprecations 🚩 diff --git a/Makefile b/Makefile index 2117e0017b0..5e7c75c8cb5 100644 --- a/Makefile +++ b/Makefile @@ -229,7 +229,7 @@ gendependabot: $(eval SHELL:=/bin/bash) OPENTELEMETRY_PROTO_SRC_DIR=pdata/internal/opentelemetry-proto # The SHA matching the current version of the proto to use -OPENTELEMETRY_PROTO_VERSION=v0.15.0 +OPENTELEMETRY_PROTO_VERSION=v0.16.0 # Find all .proto files. OPENTELEMETRY_PROTO_FILES := $(subst $(OPENTELEMETRY_PROTO_SRC_DIR)/,,$(wildcard $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/*/v1/*.proto $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/collector/*/v1/*.proto)) diff --git a/pdata/internal/cmd/pdatagen/internal/log_structs.go b/pdata/internal/cmd/pdatagen/internal/log_structs.go index 46786dcf0da..0f87fc9b154 100644 --- a/pdata/internal/cmd/pdatagen/internal/log_structs.go +++ b/pdata/internal/cmd/pdatagen/internal/log_structs.go @@ -129,14 +129,6 @@ var logRecord = &messageValueStruct{ defaultVal: `SeverityNumberUNDEFINED`, testVal: `SeverityNumberINFO`, }, - &primitiveField{ - extraComment: "Deprecated: [v0.50.0] it was removed from the data model.", - fieldName: "Name", - originFieldName: "Name", - returnType: "string", - defaultVal: `""`, - testVal: `"test_name"`, - }, bodyField, attributes, droppedAttributesCount, diff --git a/pdata/internal/data/protogen/logs/v1/logs.pb.go b/pdata/internal/data/protogen/logs/v1/logs.pb.go index 9c41b0cd27c..2e54d016416 100644 --- a/pdata/internal/data/protogen/logs/v1/logs.pb.go +++ b/pdata/internal/data/protogen/logs/v1/logs.pb.go @@ -478,12 +478,6 @@ type LogRecord struct { // The severity text (also known as log level). The original string representation as // it is known at the source. [Optional]. SeverityText string `protobuf:"bytes,3,opt,name=severity_text,json=severityText,proto3" json:"severity_text,omitempty"` - // Short event identifier that does not contain varying parts. Name describes - // what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 - // characters. Not guaranteed to be unique in any way. [Optional]. - // This deprecated field is planned to be removed March 15, 2022. Receivers can - // ignore this field. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // Deprecated: Do not use. // A value containing the body of the log record. Can be for example a human-readable // string message (including multi-line) describing the event in a free form or it can // be a structured data composed of arrays and maps of other values. [Optional]. @@ -572,14 +566,6 @@ func (m *LogRecord) GetSeverityText() string { return "" } -// Deprecated: Do not use. -func (m *LogRecord) GetName() string { - if m != nil { - return m.Name - } - return "" -} - func (m *LogRecord) GetBody() v11.AnyValue { if m != nil { return m.Body @@ -623,69 +609,68 @@ func init() { } var fileDescriptor_d1c030a3ec7e961e = []byte{ - // 978 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0x41, 0x6f, 0x22, 0x37, - 0x14, 0xc7, 0x33, 0x6c, 0x08, 0xc1, 0x21, 0xac, 0xeb, 0xb2, 0x64, 0x4a, 0x5a, 0x82, 0xd2, 0x76, - 0x4b, 0x53, 0x09, 0xb4, 0xc0, 0xaa, 0xdb, 0x9e, 0x3a, 0x84, 0x21, 0x42, 0x21, 0x10, 0x19, 0xd8, - 0x76, 0x57, 0x95, 0x46, 0x03, 0xb8, 0x74, 0xa4, 0x61, 0x8c, 0x3c, 0x26, 0x0a, 0x97, 0xde, 0x7b, - 0xeb, 0xa9, 0xdf, 0xa7, 0x6a, 0x0f, 0x7b, 0xdc, 0x63, 0xd5, 0xc3, 0xaa, 0x4a, 0x2e, 0xfd, 0x14, - 0x6d, 0x65, 0xcf, 0x40, 0x81, 0xce, 0x90, 0xe6, 0xd2, 0x13, 0xf6, 0xfb, 0xbd, 0xf7, 0xf7, 0xff, - 0xd9, 0x1e, 0x0b, 0xf0, 0x98, 0x4e, 0x88, 0xc3, 0x89, 0x4d, 0xc6, 0x84, 0xb3, 0x59, 0x71, 0xc2, - 0x28, 0xa7, 0x45, 0x9b, 0x8e, 0xdc, 0xe2, 0xd5, 0x13, 0xf9, 0x5b, 0x90, 0x21, 0x74, 0xb8, 0x92, - 0xe7, 0x05, 0x0b, 0x92, 0x5f, 0x3d, 0xc9, 0xa4, 0x46, 0x74, 0x44, 0xbd, 0x52, 0x31, 0xf2, 0x68, - 0xe6, 0x24, 0x48, 0x7a, 0x40, 0xc7, 0x63, 0xea, 0x08, 0x71, 0x6f, 0xe4, 0xe7, 0x16, 0x82, 0x72, - 0x19, 0x71, 0xe9, 0x94, 0x0d, 0x88, 0xc8, 0x9e, 0x8f, 0xbd, 0xfc, 0xe3, 0x97, 0x60, 0xb7, 0x49, - 0x47, 0x6e, 0xcd, 0xe4, 0x26, 0x6a, 0x81, 0xfd, 0x39, 0x35, 0x84, 0x23, 0x55, 0xc9, 0x3d, 0xc8, - 0xef, 0x95, 0x3e, 0x2e, 0x6c, 0xb0, 0x5c, 0xc0, 0x7e, 0x85, 0x50, 0xc1, 0x09, 0xb6, 0x34, 0x3b, - 0xfe, 0x29, 0x02, 0x12, 0xcb, 0x18, 0x9d, 0x83, 0xdd, 0x79, 0x82, 0xaa, 0xe4, 0x94, 0x50, 0xed, - 0x85, 0xc7, 0x25, 0xfd, 0xea, 0xf6, 0xab, 0x37, 0x47, 0x5b, 0x78, 0x21, 0x80, 0x74, 0x00, 0xdc, - 0x01, 0x9d, 0xf8, 0x56, 0x23, 0xd2, 0xea, 0xe3, 0x8d, 0x56, 0x3b, 0x22, 0x5d, 0xfa, 0x8c, 0xbb, - 0xf3, 0x21, 0xfa, 0x0e, 0xbc, 0x6b, 0x39, 0x2e, 0x67, 0xd3, 0x31, 0x71, 0xb8, 0xc9, 0x2d, 0xea, - 0x18, 0xb6, 0xd5, 0x67, 0x26, 0x9b, 0x79, 0xc2, 0x7f, 0xc4, 0xa4, 0xf2, 0xa7, 0x1b, 0x95, 0x1b, - 0xab, 0x0a, 0x4d, 0x4f, 0x40, 0xe8, 0x57, 0x23, 0xaa, 0x82, 0x33, 0x56, 0x28, 0x47, 0xef, 0x89, - 0x36, 0xbe, 0x25, 0x63, 0xd3, 0x98, 0x32, 0x5b, 0x7d, 0x90, 0x53, 0xf2, 0x71, 0x61, 0x4f, 0x44, - 0x7a, 0xcc, 0x3e, 0xfe, 0x45, 0x01, 0xf1, 0x85, 0x6f, 0xd4, 0x06, 0x51, 0xe9, 0xdc, 0xdf, 0xbd, - 0x72, 0xa0, 0x29, 0xff, 0x3e, 0xfc, 0xdb, 0x96, 0xd4, 0xf1, 0xf7, 0xd1, 0xd3, 0x41, 0x67, 0x60, - 0xcf, 0xa6, 0x23, 0x83, 0x91, 0x01, 0x65, 0xc3, 0xff, 0xb6, 0x8b, 0x4d, 0x3a, 0xc2, 0x32, 0x1d, - 0x03, 0x7b, 0x3e, 0xbc, 0xb3, 0x8d, 0x3f, 0x15, 0x90, 0x09, 0xdf, 0x24, 0xc4, 0xc1, 0x41, 0xc8, - 0x21, 0xf8, 0x9d, 0x3e, 0xbd, 0x5f, 0xa7, 0xbe, 0xb6, 0xdf, 0x6b, 0x3a, 0x78, 0xfb, 0xff, 0xaf, - 0xe6, 0x3f, 0x8f, 0xa8, 0xca, 0xf1, 0x8f, 0x51, 0x10, 0x5f, 0x14, 0xa3, 0x0f, 0x40, 0x92, 0x5b, - 0x63, 0x62, 0x4c, 0x1d, 0xeb, 0xda, 0x70, 0x4c, 0x87, 0xca, 0x36, 0x77, 0x70, 0x42, 0x44, 0x7b, - 0x8e, 0x75, 0xdd, 0x32, 0x1d, 0x8a, 0x9e, 0x82, 0x03, 0xda, 0x77, 0x09, 0xbb, 0x22, 0x43, 0x63, - 0x2d, 0x7d, 0x4f, 0xa6, 0xa7, 0xe6, 0xb8, 0xbb, 0x5c, 0xd6, 0x05, 0x0f, 0x5d, 0x72, 0x45, 0x98, - 0xc5, 0x67, 0x86, 0x33, 0x1d, 0xf7, 0x09, 0x53, 0x23, 0x39, 0x25, 0x9f, 0x2c, 0x7d, 0xb2, 0xf9, - 0xeb, 0xf0, 0x6b, 0x5a, 0xb2, 0x04, 0x27, 0xdd, 0x95, 0x39, 0x7a, 0x1f, 0xec, 0x2f, 0x54, 0x39, - 0xb9, 0xe6, 0x7e, 0x9b, 0x89, 0x79, 0xb0, 0x4b, 0xae, 0x39, 0x4a, 0x83, 0x6d, 0xc7, 0x1c, 0x13, - 0x75, 0x5b, 0x30, 0x79, 0xf5, 0xe5, 0x1c, 0x69, 0x60, 0xbb, 0x4f, 0x87, 0x33, 0x35, 0x2a, 0x0f, - 0xf3, 0xa3, 0x3b, 0x0e, 0x53, 0x73, 0x66, 0xcf, 0x4d, 0x7b, 0x3a, 0xbf, 0xaa, 0xb2, 0x14, 0x5d, - 0x00, 0x60, 0x72, 0xce, 0xac, 0xfe, 0x94, 0x13, 0x57, 0xdd, 0x91, 0x67, 0x75, 0x97, 0xd0, 0x39, - 0x59, 0x11, 0x5a, 0x12, 0x40, 0xcf, 0x80, 0x3a, 0x64, 0x74, 0x32, 0x21, 0x43, 0xe3, 0x9f, 0xa8, - 0x31, 0xa0, 0x53, 0x87, 0xab, 0xb1, 0x9c, 0x92, 0xdf, 0xc7, 0x69, 0x9f, 0x6b, 0x0b, 0x7c, 0x2a, - 0x28, 0x4a, 0x81, 0xe8, 0x37, 0xb6, 0x39, 0x72, 0xd5, 0xdd, 0x9c, 0x92, 0x8f, 0x61, 0x6f, 0x82, - 0xbe, 0x06, 0xbb, 0x9c, 0x99, 0x03, 0x62, 0x58, 0x43, 0x35, 0x9e, 0x53, 0xf2, 0x89, 0xaa, 0x26, - 0xd6, 0xfc, 0xed, 0xcd, 0xd1, 0x67, 0x23, 0xba, 0x66, 0xd3, 0x12, 0xaf, 0xb7, 0x6d, 0x93, 0x01, - 0xa7, 0xac, 0x38, 0x19, 0x9a, 0xdc, 0x2c, 0x5a, 0x0e, 0x27, 0xcc, 0x31, 0xed, 0xa2, 0x98, 0x15, - 0xba, 0x42, 0xa9, 0x51, 0xc3, 0x31, 0x29, 0xd9, 0x18, 0xa2, 0x17, 0x20, 0xe6, 0x4e, 0x4c, 0x47, - 0x88, 0x03, 0x29, 0xfe, 0x85, 0x2f, 0xfe, 0xec, 0xfe, 0xe2, 0x9d, 0x89, 0xe9, 0x34, 0x6a, 0x78, - 0x47, 0x08, 0x36, 0x86, 0x27, 0x3f, 0x47, 0x41, 0x72, 0xf5, 0xe8, 0xd1, 0x11, 0x38, 0xec, 0xe8, - 0xcf, 0x75, 0xdc, 0xe8, 0xbe, 0x30, 0x5a, 0xbd, 0x8b, 0xaa, 0x8e, 0x8d, 0x5e, 0xab, 0x73, 0xa9, - 0x9f, 0x36, 0xea, 0x0d, 0xbd, 0x06, 0xb7, 0xd0, 0x3b, 0xe0, 0xd1, 0x7a, 0x42, 0x17, 0x6b, 0xa7, - 0x3a, 0x54, 0x50, 0x06, 0xa4, 0x03, 0x51, 0x09, 0x46, 0x42, 0x59, 0x19, 0x3e, 0x08, 0x65, 0x15, - 0xb8, 0x1d, 0xb4, 0x5c, 0x4d, 0xaf, 0xf6, 0xce, 0x60, 0x34, 0xa8, 0x4c, 0xa2, 0x12, 0xdc, 0x09, - 0x65, 0x65, 0x18, 0x0b, 0x65, 0x15, 0xb8, 0x8b, 0x54, 0x90, 0x5a, 0x67, 0x8d, 0x56, 0xbd, 0x0d, - 0xe3, 0x41, 0x46, 0x04, 0x29, 0x41, 0x10, 0x86, 0xca, 0x70, 0x2f, 0x0c, 0x55, 0x60, 0x22, 0x68, - 0xa9, 0x2f, 0x35, 0xdc, 0x82, 0xfb, 0x41, 0x45, 0x82, 0x94, 0x60, 0x32, 0x0c, 0x95, 0xe1, 0xc3, - 0x30, 0x54, 0x81, 0x30, 0x08, 0xe9, 0x18, 0xb7, 0x31, 0x7c, 0x2b, 0x68, 0x33, 0x24, 0x2a, 0x41, - 0x14, 0xca, 0xca, 0xf0, 0xed, 0x50, 0x56, 0x81, 0xa9, 0xa0, 0xe5, 0xea, 0x5a, 0x57, 0x6b, 0xc2, - 0x47, 0x41, 0x65, 0x12, 0x95, 0x60, 0x3a, 0x94, 0x95, 0xe1, 0x41, 0x28, 0xab, 0x40, 0xf5, 0xe4, - 0x2b, 0x90, 0x5c, 0xbc, 0xae, 0x75, 0xf9, 0x41, 0x1e, 0x81, 0xc3, 0x66, 0xfb, 0xcc, 0xc0, 0xfa, - 0x69, 0x1b, 0xd7, 0x8c, 0x7a, 0x53, 0x3b, 0x5b, 0xbb, 0xc4, 0x1f, 0x82, 0xdc, 0x7a, 0x82, 0xbc, - 0x71, 0x72, 0xd8, 0x31, 0x2e, 0xb4, 0xce, 0x39, 0xfc, 0x4b, 0xa9, 0x7e, 0xaf, 0xbc, 0xba, 0xc9, - 0x2a, 0xaf, 0x6f, 0xb2, 0xca, 0xef, 0x37, 0x59, 0xe5, 0x87, 0xdb, 0xec, 0xd6, 0xeb, 0xdb, 0xec, - 0xd6, 0xaf, 0xb7, 0xd9, 0x2d, 0x90, 0xb5, 0xe8, 0xa6, 0x17, 0xb5, 0x2a, 0x1e, 0x7c, 0xf7, 0x52, - 0x84, 0x2e, 0x95, 0x97, 0xd5, 0x7b, 0x7f, 0xa9, 0xde, 0x9f, 0xb7, 0x11, 0x71, 0xe6, 0x7f, 0x23, - 0xfb, 0x3b, 0x32, 0x52, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xac, 0x0d, 0x5c, 0x58, 0x6c, 0x0a, - 0x00, 0x00, + // 971 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x96, 0x41, 0x73, 0x22, 0x45, + 0x14, 0xc7, 0x33, 0x24, 0x04, 0xe8, 0x10, 0xb6, 0x6d, 0xb3, 0xc9, 0x48, 0x94, 0x50, 0x51, 0x57, + 0x8c, 0x55, 0x50, 0x0b, 0x6c, 0xb9, 0x7a, 0x72, 0x08, 0x43, 0x0a, 0x43, 0x20, 0xd5, 0xc0, 0xea, + 0x6e, 0x59, 0x35, 0x35, 0x40, 0x8b, 0x53, 0x35, 0x4c, 0x53, 0x3d, 0x4d, 0x2a, 0x5c, 0x3c, 0x79, + 0xf1, 0xe6, 0x57, 0xb2, 0xf4, 0xb0, 0xc7, 0x3d, 0x5a, 0x1e, 0xb6, 0xac, 0xe4, 0xe2, 0xa7, 0x50, + 0xab, 0x7b, 0x06, 0x04, 0x9c, 0x21, 0xe6, 0xb2, 0x27, 0xba, 0xdf, 0xef, 0xbd, 0x7f, 0xff, 0x5f, + 0x77, 0x4f, 0x17, 0xe0, 0x11, 0x1d, 0x13, 0x87, 0x13, 0x9b, 0x8c, 0x08, 0x67, 0xd3, 0xc2, 0x98, + 0x51, 0x4e, 0x0b, 0x36, 0x1d, 0xba, 0x85, 0xab, 0xc7, 0xf2, 0x37, 0x2f, 0x43, 0xe8, 0x70, 0x29, + 0xcf, 0x0b, 0xe6, 0x25, 0xbf, 0x7a, 0x9c, 0xde, 0x1b, 0xd2, 0x21, 0xf5, 0x4a, 0xc5, 0xc8, 0xa3, + 0xe9, 0x93, 0x20, 0xe9, 0x3e, 0x1d, 0x8d, 0xa8, 0x23, 0xc4, 0xbd, 0x91, 0x9f, 0x9b, 0x0f, 0xca, + 0x65, 0xc4, 0xa5, 0x13, 0xd6, 0x27, 0x22, 0x7b, 0x36, 0xf6, 0xf2, 0x8f, 0x5f, 0x80, 0x78, 0x83, + 0x0e, 0xdd, 0xaa, 0xc9, 0x4d, 0xd4, 0x04, 0xbb, 0x33, 0x6a, 0x08, 0x47, 0xaa, 0x92, 0xdd, 0xcc, + 0xed, 0x14, 0x3f, 0xce, 0xaf, 0xb1, 0x9c, 0xc7, 0x7e, 0x85, 0x50, 0xc1, 0x49, 0xb6, 0x30, 0x3b, + 0xfe, 0x39, 0x02, 0x92, 0x8b, 0x18, 0x9d, 0x83, 0xf8, 0x2c, 0x41, 0x55, 0xb2, 0x4a, 0xa8, 0xf6, + 0xdc, 0xe3, 0x82, 0x7e, 0x65, 0xeb, 0xe5, 0xeb, 0xa3, 0x0d, 0x3c, 0x17, 0x40, 0x3a, 0x00, 0x6e, + 0x9f, 0x8e, 0x7d, 0xab, 0x11, 0x69, 0xf5, 0xd1, 0x5a, 0xab, 0x6d, 0x91, 0x2e, 0x7d, 0x26, 0xdc, + 0xd9, 0x10, 0x7d, 0x0f, 0xde, 0xb5, 0x1c, 0x97, 0xb3, 0xc9, 0x88, 0x38, 0xdc, 0xe4, 0x16, 0x75, + 0x0c, 0xdb, 0xea, 0x31, 0x93, 0x4d, 0x3d, 0xe1, 0x3f, 0x63, 0x52, 0xf9, 0xd3, 0xb5, 0xca, 0xf5, + 0x65, 0x85, 0x86, 0x27, 0x20, 0xf4, 0x2b, 0x11, 0x55, 0xc1, 0x69, 0x2b, 0x94, 0xa3, 0xf7, 0x44, + 0x1b, 0xdf, 0x91, 0x91, 0x69, 0x4c, 0x98, 0xad, 0x6e, 0x66, 0x95, 0x5c, 0x42, 0xd8, 0x13, 0x91, + 0x2e, 0xb3, 0x8f, 0x7f, 0x55, 0x40, 0x62, 0xee, 0x1b, 0xb5, 0x40, 0x54, 0x3a, 0xf7, 0x77, 0xaf, + 0x14, 0x68, 0xca, 0xbf, 0x0f, 0xff, 0xb5, 0x25, 0x75, 0xfc, 0x7d, 0xf4, 0x74, 0xd0, 0x19, 0xd8, + 0xb1, 0xe9, 0xd0, 0x60, 0xa4, 0x4f, 0xd9, 0xe0, 0xff, 0xed, 0x62, 0x83, 0x0e, 0xb1, 0x4c, 0xc7, + 0xc0, 0x9e, 0x0d, 0xef, 0x6c, 0xe3, 0x2f, 0x05, 0xa4, 0xc3, 0x37, 0x09, 0x71, 0x70, 0x10, 0x72, + 0x08, 0x7e, 0xa7, 0x4f, 0xee, 0xd7, 0xa9, 0xaf, 0xed, 0xf7, 0xba, 0x1f, 0xbc, 0xfd, 0x6f, 0xaa, + 0xf9, 0xcf, 0x23, 0xaa, 0x72, 0xfc, 0x43, 0x14, 0x24, 0xe6, 0xc5, 0xe8, 0x03, 0x90, 0xe2, 0xd6, + 0x88, 0x18, 0x13, 0xc7, 0xba, 0x36, 0x1c, 0xd3, 0xa1, 0xb2, 0xcd, 0x6d, 0x9c, 0x14, 0xd1, 0xae, + 0x63, 0x5d, 0x37, 0x4d, 0x87, 0xa2, 0x27, 0xe0, 0x80, 0xf6, 0x5c, 0xc2, 0xae, 0xc8, 0xc0, 0x58, + 0x49, 0xdf, 0x91, 0xe9, 0x7b, 0x33, 0xdc, 0x59, 0x2c, 0xeb, 0x80, 0x07, 0x2e, 0xb9, 0x22, 0xcc, + 0xe2, 0x53, 0xc3, 0x99, 0x8c, 0x7a, 0x84, 0xa9, 0x91, 0xac, 0x92, 0x4b, 0x15, 0x3f, 0x59, 0xff, + 0x75, 0xf8, 0x35, 0x4d, 0x59, 0x82, 0x53, 0xee, 0xd2, 0x1c, 0xbd, 0x0f, 0x76, 0xe7, 0xaa, 0x9c, + 0x5c, 0x73, 0xbf, 0xcd, 0xe4, 0x2c, 0xd8, 0x21, 0xd7, 0x1c, 0x69, 0x60, 0xab, 0x47, 0x07, 0x53, + 0x35, 0x2a, 0x0f, 0xed, 0xa3, 0x3b, 0x0e, 0x4d, 0x73, 0xa6, 0xcf, 0x4c, 0x7b, 0x32, 0xbb, 0x92, + 0xb2, 0x14, 0x5d, 0x00, 0x60, 0x72, 0xce, 0xac, 0xde, 0x84, 0x13, 0x57, 0xdd, 0x96, 0x67, 0x72, + 0x97, 0xd0, 0x39, 0x59, 0x12, 0x5a, 0x10, 0x40, 0x4f, 0x81, 0x3a, 0x60, 0x74, 0x3c, 0x26, 0x03, + 0xe3, 0xdf, 0xa8, 0xd1, 0xa7, 0x13, 0x87, 0xab, 0xb1, 0xac, 0x92, 0xdb, 0xc5, 0xfb, 0x3e, 0xd7, + 0xe6, 0xf8, 0x54, 0x50, 0xb4, 0x07, 0xa2, 0xdf, 0xda, 0xe6, 0xd0, 0x55, 0xe3, 0x59, 0x25, 0x17, + 0xc3, 0xde, 0x04, 0x7d, 0x03, 0xe2, 0x9c, 0x99, 0x7d, 0x62, 0x58, 0x03, 0x35, 0x91, 0x55, 0x72, + 0xc9, 0x8a, 0x26, 0xd6, 0xfc, 0xfd, 0xf5, 0xd1, 0x67, 0x43, 0xba, 0x62, 0xd3, 0x12, 0xaf, 0xb4, + 0x6d, 0x93, 0x3e, 0xa7, 0xac, 0x30, 0x1e, 0x98, 0xdc, 0x2c, 0x58, 0x0e, 0x27, 0xcc, 0x31, 0xed, + 0x82, 0x98, 0xe5, 0x3b, 0x42, 0xa9, 0x5e, 0xc5, 0x31, 0x29, 0x59, 0x1f, 0xa0, 0xe7, 0x20, 0xe6, + 0x8e, 0x4d, 0x47, 0x88, 0x03, 0x29, 0xfe, 0x85, 0x2f, 0xfe, 0xf4, 0xfe, 0xe2, 0xed, 0xb1, 0xe9, + 0xd4, 0xab, 0x78, 0x5b, 0x08, 0xd6, 0x07, 0x5f, 0x6e, 0xc5, 0xb7, 0x60, 0xf4, 0xe4, 0x97, 0x28, + 0x48, 0x2d, 0x1f, 0x34, 0x3a, 0x02, 0x87, 0x6d, 0xfd, 0x99, 0x8e, 0xeb, 0x9d, 0xe7, 0x46, 0xb3, + 0x7b, 0x51, 0xd1, 0xb1, 0xd1, 0x6d, 0xb6, 0x2f, 0xf5, 0xd3, 0x7a, 0xad, 0xae, 0x57, 0xe1, 0x06, + 0x7a, 0x07, 0x3c, 0x5c, 0x4d, 0xe8, 0x60, 0xed, 0x54, 0x87, 0x0a, 0x4a, 0x83, 0xfd, 0x40, 0x54, + 0x84, 0x91, 0x50, 0x56, 0x82, 0x9b, 0xa1, 0xac, 0x0c, 0xb7, 0x82, 0x96, 0xab, 0xea, 0x95, 0xee, + 0x19, 0x8c, 0x06, 0x95, 0x49, 0x54, 0x84, 0xdb, 0xa1, 0xac, 0x04, 0x63, 0xa1, 0xac, 0x0c, 0xe3, + 0x48, 0x05, 0x7b, 0xab, 0xac, 0xde, 0xac, 0xb5, 0x60, 0x22, 0xc8, 0x88, 0x20, 0x45, 0x08, 0xc2, + 0x50, 0x09, 0xee, 0x84, 0xa1, 0x32, 0x4c, 0x06, 0x2d, 0xf5, 0x95, 0x86, 0x9b, 0x70, 0x37, 0xa8, + 0x48, 0x90, 0x22, 0x4c, 0x85, 0xa1, 0x12, 0x7c, 0x10, 0x86, 0xca, 0x10, 0x06, 0x21, 0x1d, 0xe3, + 0x16, 0x86, 0x6f, 0x05, 0x6d, 0x86, 0x44, 0x45, 0x88, 0x42, 0x59, 0x09, 0xbe, 0x1d, 0xca, 0xca, + 0x70, 0x2f, 0x68, 0xb9, 0x9a, 0xd6, 0xd1, 0x1a, 0xf0, 0x61, 0x50, 0x99, 0x44, 0x45, 0xb8, 0x1f, + 0xca, 0x4a, 0xf0, 0x20, 0x94, 0x95, 0xa1, 0x7a, 0xf2, 0x35, 0x48, 0xcd, 0xdf, 0xd2, 0x9a, 0xfc, + 0x2c, 0x8f, 0xc0, 0x61, 0xa3, 0x75, 0x66, 0x60, 0xfd, 0xb4, 0x85, 0xab, 0x46, 0xad, 0xa1, 0x9d, + 0xad, 0x5c, 0xe2, 0x0f, 0x41, 0x76, 0x35, 0x41, 0xde, 0x38, 0x39, 0x6c, 0x1b, 0x17, 0x5a, 0xfb, + 0x1c, 0xfe, 0xad, 0x54, 0x7e, 0x54, 0x5e, 0xde, 0x64, 0x94, 0x57, 0x37, 0x19, 0xe5, 0x8f, 0x9b, + 0x8c, 0xf2, 0xd3, 0x6d, 0x66, 0xe3, 0xd5, 0x6d, 0x66, 0xe3, 0xb7, 0xdb, 0xcc, 0x06, 0xc8, 0x58, + 0x74, 0xdd, 0xfb, 0x59, 0x11, 0xcf, 0xbb, 0x7b, 0x29, 0x42, 0x97, 0xca, 0x8b, 0xca, 0xbd, 0xbf, + 0x57, 0xef, 0xaf, 0xda, 0x90, 0x38, 0xb3, 0x3f, 0x8d, 0xbd, 0x6d, 0x19, 0x29, 0xfd, 0x13, 0x00, + 0x00, 0xff, 0xff, 0x43, 0x73, 0x1b, 0xe8, 0x5a, 0x0a, 0x00, 0x00, } func (m *LogsData) Marshal() (dAtA []byte, err error) { @@ -984,13 +969,6 @@ func (m *LogRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x2a - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintLogs(dAtA, i, uint64(len(m.Name))) - i-- - dAtA[i] = 0x22 - } if len(m.SeverityText) > 0 { i -= len(m.SeverityText) copy(dAtA[i:], m.SeverityText) @@ -1123,10 +1101,6 @@ func (m *LogRecord) Size() (n int) { if l > 0 { n += 1 + l + sovLogs(uint64(l)) } - l = len(m.Name) - if l > 0 { - n += 1 + l + sovLogs(uint64(l)) - } l = m.Body.Size() n += 1 + l + sovLogs(uint64(l)) if len(m.Attributes) > 0 { @@ -1812,38 +1786,6 @@ func (m *LogRecord) Unmarshal(dAtA []byte) error { } m.SeverityText = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowLogs - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthLogs - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthLogs - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Name = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Body", wireType) diff --git a/pdata/internal/generated_plog.go b/pdata/internal/generated_plog.go index 601d47cb6a7..2fd319d6556 100644 --- a/pdata/internal/generated_plog.go +++ b/pdata/internal/generated_plog.go @@ -649,20 +649,6 @@ func (ms LogRecord) SetSeverityNumber(v SeverityNumber) { (*ms.orig).SeverityNumber = otlplogs.SeverityNumber(v) } -// Name returns the name associated with this LogRecord. -// -// Deprecated: [v0.50.0] it was removed from the data model. -func (ms LogRecord) Name() string { - return (*ms.orig).Name -} - -// SetName replaces the name associated with this LogRecord. -// -// Deprecated: [v0.50.0] it was removed from the data model. -func (ms LogRecord) SetName(v string) { - (*ms.orig).Name = v -} - // Body returns the body associated with this LogRecord. func (ms LogRecord) Body() Value { return newValue(&(*ms.orig).Body) @@ -692,7 +678,6 @@ func (ms LogRecord) CopyTo(dest LogRecord) { dest.SetFlags(ms.Flags()) dest.SetSeverityText(ms.SeverityText()) dest.SetSeverityNumber(ms.SeverityNumber()) - dest.SetName(ms.Name()) ms.Body().CopyTo(dest.Body()) ms.Attributes().CopyTo(dest.Attributes()) dest.SetDroppedAttributesCount(ms.DroppedAttributesCount()) diff --git a/pdata/internal/generated_plog_test.go b/pdata/internal/generated_plog_test.go index 2e7e88e1bf6..b7547b03231 100644 --- a/pdata/internal/generated_plog_test.go +++ b/pdata/internal/generated_plog_test.go @@ -509,14 +509,6 @@ func TestLogRecord_SeverityNumber(t *testing.T) { assert.EqualValues(t, testValSeverityNumber, ms.SeverityNumber()) } -func TestLogRecord_Name(t *testing.T) { - ms := NewLogRecord() - assert.EqualValues(t, "", ms.Name()) - testValName := "test_name" - ms.SetName(testValName) - assert.EqualValues(t, testValName, ms.Name()) -} - func TestLogRecord_Body(t *testing.T) { ms := NewLogRecord() fillTestValue(ms.Body()) @@ -619,7 +611,6 @@ func fillTestLogRecord(tv LogRecord) { tv.SetFlags(uint32(0x01)) tv.SetSeverityText("INFO") tv.SetSeverityNumber(SeverityNumberINFO) - tv.SetName("test_name") fillTestValue(tv.Body()) fillTestMap(tv.Attributes()) tv.SetDroppedAttributesCount(uint32(17)) From 8255219980853e16970f031b8737c4ae58f70d0e Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Fri, 29 Apr 2022 17:09:36 +0200 Subject: [PATCH 07/67] [service] nit: move all telemetry fields into TelemetrySettings. (#5293) --- service/collector.go | 60 ++++++++++++++++++--------------------- service/collector_test.go | 2 +- service/telemetry.go | 4 +-- 3 files changed, 30 insertions(+), 36 deletions(-) diff --git a/service/collector.go b/service/collector.go index 4865381d647..9bd94fcb7d2 100644 --- a/service/collector.go +++ b/service/collector.go @@ -26,7 +26,6 @@ import ( "syscall" "go.opentelemetry.io/contrib/zpages" - "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/metric/nonrecording" sdktrace "go.opentelemetry.io/otel/sdk/trace" "go.opentelemetry.io/otel/trace" @@ -77,11 +76,8 @@ func (s State) String() string { // Collector represents a server providing the OpenTelemetry Collector service. type Collector struct { - set CollectorSettings - logger *zap.Logger - - tracerProvider trace.TracerProvider - meterProvider metric.MeterProvider + set CollectorSettings + telemetry component.TelemetrySettings zPagesSpanProcessor *zpages.SpanProcessor service *service @@ -108,10 +104,11 @@ func New(set CollectorSettings) (*Collector, error) { } return &Collector{ - logger: zap.NewNop(), // Set a Nop logger as a place holder until a logger is created based on configuration - - tracerProvider: trace.NewNoopTracerProvider(), - meterProvider: nonrecording.NewNoopMeterProvider(), + telemetry: component.TelemetrySettings{ + Logger: zap.NewNop(), // Set a Nop logger as a place holder until a logger is created based on configuration + TracerProvider: trace.NewNoopTracerProvider(), + MeterProvider: nonrecording.NewNoopMeterProvider(), + }, asyncErrorChannel: make(chan error), set: set, @@ -129,7 +126,7 @@ func (col *Collector) GetState() State { // GetLogger returns logger used by the Collector. // The logger is initialized after collector server start. func (col *Collector) GetLogger() *zap.Logger { - return col.logger + return col.telemetry.Logger } // Shutdown shuts down the collector server. @@ -146,7 +143,7 @@ func (col *Collector) Shutdown() { // runAndWaitForShutdownEvent waits for one of the shutdown events that can happen. func (col *Collector) runAndWaitForShutdownEvent(ctx context.Context) error { - col.logger.Info("Everything is ready. Begin running and processing data.") + col.telemetry.Logger.Info("Everything is ready. Begin running and processing data.") col.signalsChannel = make(chan os.Signal, 1) // Only notify with SIGTERM and SIGINT if graceful shutdown is enabled. @@ -160,11 +157,11 @@ LOOP: select { case err := <-col.set.ConfigProvider.Watch(): if err != nil { - col.logger.Error("Config watch failed", zap.Error(err)) + col.telemetry.Logger.Error("Config watch failed", zap.Error(err)) break LOOP } - col.logger.Warn("Config updated, restart service") + col.telemetry.Logger.Warn("Config updated, restart service") col.setCollectorState(Closing) if err = col.service.Shutdown(ctx); err != nil { @@ -174,16 +171,16 @@ LOOP: return fmt.Errorf("failed to setup configuration components: %w", err) } case err := <-col.asyncErrorChannel: - col.logger.Error("Asynchronous error received, terminating process", zap.Error(err)) + col.telemetry.Logger.Error("Asynchronous error received, terminating process", zap.Error(err)) break LOOP case s := <-col.signalsChannel: - col.logger.Info("Received signal from OS", zap.String("signal", s.String())) + col.telemetry.Logger.Info("Received signal from OS", zap.String("signal", s.String())) break LOOP case <-col.shutdownChan: - col.logger.Info("Received shutdown request") + col.telemetry.Logger.Info("Received shutdown request") break LOOP case <-ctx.Done(): - col.logger.Info("Context done, terminating process", zap.Error(ctx.Err())) + col.telemetry.Logger.Info("Context done, terminating process", zap.Error(ctx.Err())) // Call shutdown with background context as the passed in context has been canceled return col.shutdown(context.Background()) @@ -202,24 +199,21 @@ func (col *Collector) setupConfigurationComponents(ctx context.Context) error { return fmt.Errorf("failed to get config: %w", err) } - if col.logger, err = telemetrylogs.NewLogger(cfg.Service.Telemetry.Logs, col.set.LoggingOptions); err != nil { + col.telemetry.MetricsLevel = cfg.Telemetry.Metrics.Level + + if col.telemetry.Logger, err = telemetrylogs.NewLogger(cfg.Service.Telemetry.Logs, col.set.LoggingOptions); err != nil { return fmt.Errorf("failed to get logger: %w", err) } if !col.set.SkipSettingGRPCLogger { - telemetrylogs.SetColGRPCLogger(col.logger, cfg.Service.Telemetry.Logs.Level) + telemetrylogs.SetColGRPCLogger(col.telemetry.Logger, cfg.Service.Telemetry.Logs.Level) } col.service, err = newService(&svcSettings{ - BuildInfo: col.set.BuildInfo, - Factories: col.set.Factories, - Config: cfg, - Telemetry: component.TelemetrySettings{ - Logger: col.logger, - TracerProvider: col.tracerProvider, - MeterProvider: col.meterProvider, - MetricsLevel: cfg.Telemetry.Metrics.Level, - }, + BuildInfo: col.set.BuildInfo, + Factories: col.set.Factories, + Config: cfg, + Telemetry: col.telemetry, ZPagesSpanProcessor: col.zPagesSpanProcessor, AsyncErrorChannel: col.asyncErrorChannel, }) @@ -245,7 +239,7 @@ func (col *Collector) setupConfigurationComponents(ctx context.Context) error { // Consecutive calls to Run are not allowed, Run shouldn't be called once a collector is shut down. func (col *Collector) Run(ctx context.Context) error { col.zPagesSpanProcessor = zpages.NewSpanProcessor() - col.tracerProvider = sdktrace.NewTracerProvider( + col.telemetry.TracerProvider = sdktrace.NewTracerProvider( sdktrace.WithSampler(internal.AlwaysRecord()), sdktrace.WithSpanProcessor(col.zPagesSpanProcessor)) @@ -254,7 +248,7 @@ func (col *Collector) Run(ctx context.Context) error { return err } - col.logger.Info("Starting "+col.set.BuildInfo.Command+"...", + col.telemetry.Logger.Info("Starting "+col.set.BuildInfo.Command+"...", zap.String("Version", col.set.BuildInfo.Version), zap.Int("NumCPU", runtime.NumCPU()), ) @@ -270,7 +264,7 @@ func (col *Collector) shutdown(ctx context.Context) error { var errs error // Begin shutdown sequence. - col.logger.Info("Starting shutdown...") + col.telemetry.Logger.Info("Starting shutdown...") if err := col.set.ConfigProvider.Shutdown(ctx); err != nil { errs = multierr.Append(errs, fmt.Errorf("failed to shutdown config provider: %w", err)) @@ -284,7 +278,7 @@ func (col *Collector) shutdown(ctx context.Context) error { errs = multierr.Append(errs, fmt.Errorf("failed to shutdown collector telemetry: %w", err)) } - col.logger.Info("Shutdown complete.") + col.telemetry.Logger.Info("Shutdown complete.") col.setCollectorState(Closed) return errs diff --git a/service/collector_test.go b/service/collector_test.go index 2a7e49fd952..acc8b0c127c 100644 --- a/service/collector_test.go +++ b/service/collector_test.go @@ -217,7 +217,7 @@ func testCollectorStartHelper(t *testing.T, telemetry collectorTelemetryExporter assert.Eventually(t, func() bool { return Running == col.GetState() }, 2*time.Second, 200*time.Millisecond) - assert.Equal(t, col.logger, col.GetLogger()) + assert.Equal(t, col.telemetry.Logger, col.GetLogger()) assert.True(t, loggingHookCalled) // All labels added to all collector metrics by default are listed below. diff --git a/service/telemetry.go b/service/telemetry.go index 35eeee60088..cb48395cbb9 100644 --- a/service/telemetry.go +++ b/service/telemetry.go @@ -91,7 +91,7 @@ func (tel *colTelemetry) init(col *Collector) error { } func (tel *colTelemetry) initOnce(col *Collector) error { - logger := col.logger + logger := col.telemetry.Logger cfg := col.service.config.Telemetry level := cfg.Metrics.Level @@ -210,7 +210,7 @@ func (tel *colTelemetry) initOpenTelemetry(col *Collector) (http.Handler, error) return nil, err } - col.meterProvider = pe.MeterProvider() + col.telemetry.MeterProvider = pe.MeterProvider() return pe, err } From 041f39835df75d482cdd7775eb723c2ecb40f43d Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Fri, 29 Apr 2022 17:13:28 +0200 Subject: [PATCH 08/67] [service] Split `component.Host` functionality into separate `serviceHost` struct (#5292) * [service] Split `component.Host` functionality into separate `service.Host` * [service] Move `serviceHost` to its own file --- service/collector_test.go | 2 +- service/host.go | 66 +++++++++++++++++++++++++++++ service/service.go | 87 ++++++++++++--------------------------- service/service_test.go | 22 +++++----- service/telemetry.go | 2 +- service/zpages.go | 22 +++++----- 6 files changed, 116 insertions(+), 85 deletions(-) create mode 100644 service/host.go diff --git a/service/collector_test.go b/service/collector_test.go index acc8b0c127c..432c5ed931c 100644 --- a/service/collector_test.go +++ b/service/collector_test.go @@ -137,7 +137,7 @@ func TestCollectorReportError(t *testing.T) { return Running == col.GetState() }, 2*time.Second, 200*time.Millisecond) - col.service.ReportFatalError(errors.New("err2")) + col.service.host.ReportFatalError(errors.New("err2")) wg.Wait() assert.Equal(t, Closed, col.GetState()) diff --git a/service/host.go b/service/host.go new file mode 100644 index 00000000000..5767b7e4b63 --- /dev/null +++ b/service/host.go @@ -0,0 +1,66 @@ +// 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 service // import "go.opentelemetry.io/collector/service" + +import ( + "go.opentelemetry.io/contrib/zpages" + + "go.opentelemetry.io/collector/component" + "go.opentelemetry.io/collector/config" + "go.opentelemetry.io/collector/service/internal/builder" + "go.opentelemetry.io/collector/service/internal/extensions" +) + +var _ component.Host = (*serviceHost)(nil) + +type serviceHost struct { + asyncErrorChannel chan error + factories component.Factories + zPagesSpanProcessor *zpages.SpanProcessor + + builtExporters builder.Exporters + builtReceivers builder.Receivers + builtPipelines builder.BuiltPipelines + builtExtensions extensions.Extensions +} + +// ReportFatalError is used to report to the host that the receiver encountered +// a fatal error (i.e.: an error that the instance can't recover from) after +// its start function has already returned. +func (host *serviceHost) ReportFatalError(err error) { + host.asyncErrorChannel <- err +} + +func (host *serviceHost) GetFactory(kind component.Kind, componentType config.Type) component.Factory { + switch kind { + case component.KindReceiver: + return host.factories.Receivers[componentType] + case component.KindProcessor: + return host.factories.Processors[componentType] + case component.KindExporter: + return host.factories.Exporters[componentType] + case component.KindExtension: + return host.factories.Extensions[componentType] + } + return nil +} + +func (host *serviceHost) GetExtensions() map[config.ComponentID]component.Extension { + return host.builtExtensions.ToMap() +} + +func (host *serviceHost) GetExporters() map[config.DataType]map[config.ComponentID]component.Exporter { + return host.builtExporters.ToMapByDataType() +} diff --git a/service/service.go b/service/service.go index 526cbc16ef9..986e6daa835 100644 --- a/service/service.go +++ b/service/service.go @@ -18,7 +18,6 @@ import ( "context" "fmt" - "go.opentelemetry.io/contrib/zpages" "go.uber.org/multierr" "go.opentelemetry.io/collector/component" @@ -29,31 +28,26 @@ import ( // service represents the implementation of a component.Host. type service struct { - factories component.Factories - buildInfo component.BuildInfo - config *config.Config - telemetry component.TelemetrySettings - zPagesSpanProcessor *zpages.SpanProcessor - asyncErrorChannel chan error - - builtExporters builder.Exporters - builtReceivers builder.Receivers - builtPipelines builder.BuiltPipelines - builtExtensions extensions.Extensions + buildInfo component.BuildInfo + config *config.Config + telemetry component.TelemetrySettings + host *serviceHost } func newService(set *svcSettings) (*service, error) { srv := &service{ - factories: set.Factories, - buildInfo: set.BuildInfo, - config: set.Config, - telemetry: set.Telemetry, - zPagesSpanProcessor: set.ZPagesSpanProcessor, - asyncErrorChannel: set.AsyncErrorChannel, + buildInfo: set.BuildInfo, + config: set.Config, + telemetry: set.Telemetry, + host: &serviceHost{ + factories: set.Factories, + zPagesSpanProcessor: set.ZPagesSpanProcessor, + asyncErrorChannel: set.AsyncErrorChannel, + }, } var err error - if srv.builtExtensions, err = extensions.Build(srv.telemetry, srv.buildInfo, srv.config, srv.factories.Extensions); err != nil { + if srv.host.builtExtensions, err = extensions.Build(srv.telemetry, srv.buildInfo, srv.config, srv.host.factories.Extensions); err != nil { return nil, fmt.Errorf("cannot build extensions: %w", err) } @@ -61,17 +55,17 @@ func newService(set *svcSettings) (*service, error) { // which are referenced before objects which reference them. // First create exporters. - if srv.builtExporters, err = builder.BuildExporters(srv.telemetry, srv.buildInfo, srv.config, srv.factories.Exporters); err != nil { + if srv.host.builtExporters, err = builder.BuildExporters(srv.telemetry, srv.buildInfo, srv.config, srv.host.factories.Exporters); err != nil { return nil, fmt.Errorf("cannot build exporters: %w", err) } // Create pipelines and their processors and plug exporters to the end of the pipelines. - if srv.builtPipelines, err = builder.BuildPipelines(srv.telemetry, srv.buildInfo, srv.config, srv.builtExporters, srv.factories.Processors); err != nil { + if srv.host.builtPipelines, err = builder.BuildPipelines(srv.telemetry, srv.buildInfo, srv.config, srv.host.builtExporters, srv.host.factories.Processors); err != nil { return nil, fmt.Errorf("cannot build pipelines: %w", err) } // Create receivers and plug them into the start of the pipelines. - if srv.builtReceivers, err = builder.BuildReceivers(srv.telemetry, srv.buildInfo, srv.config, srv.builtPipelines, srv.factories.Receivers); err != nil { + if srv.host.builtReceivers, err = builder.BuildReceivers(srv.telemetry, srv.buildInfo, srv.config, srv.host.builtPipelines, srv.host.factories.Receivers); err != nil { return nil, fmt.Errorf("cannot build receivers: %w", err) } @@ -80,33 +74,33 @@ func newService(set *svcSettings) (*service, error) { func (srv *service) Start(ctx context.Context) error { srv.telemetry.Logger.Info("Starting extensions...") - if err := srv.builtExtensions.StartAll(ctx, srv); err != nil { + if err := srv.host.builtExtensions.StartAll(ctx, srv.host); err != nil { return fmt.Errorf("failed to start extensions: %w", err) } srv.telemetry.Logger.Info("Starting exporters...") - if err := srv.builtExporters.StartAll(ctx, srv); err != nil { + if err := srv.host.builtExporters.StartAll(ctx, srv.host); err != nil { return fmt.Errorf("cannot start exporters: %w", err) } srv.telemetry.Logger.Info("Starting processors...") - if err := srv.builtPipelines.StartProcessors(ctx, srv); err != nil { + if err := srv.host.builtPipelines.StartProcessors(ctx, srv.host); err != nil { return fmt.Errorf("cannot start processors: %w", err) } srv.telemetry.Logger.Info("Starting receivers...") - if err := srv.builtReceivers.StartAll(ctx, srv); err != nil { + if err := srv.host.builtReceivers.StartAll(ctx, srv.host); err != nil { return fmt.Errorf("cannot start receivers: %w", err) } - return srv.builtExtensions.NotifyPipelineReady() + return srv.host.builtExtensions.NotifyPipelineReady() } func (srv *service) Shutdown(ctx context.Context) error { // Accumulate errors and proceed with shutting down remaining components. var errs error - if err := srv.builtExtensions.NotifyPipelineNotReady(); err != nil { + if err := srv.host.builtExtensions.NotifyPipelineNotReady(); err != nil { errs = multierr.Append(errs, fmt.Errorf("failed to notify that pipeline is not ready: %w", err)) } @@ -115,53 +109,24 @@ func (srv *service) Shutdown(ctx context.Context) error { // time should be part of configuration. srv.telemetry.Logger.Info("Stopping receivers...") - if err := srv.builtReceivers.ShutdownAll(ctx); err != nil { + if err := srv.host.builtReceivers.ShutdownAll(ctx); err != nil { errs = multierr.Append(errs, fmt.Errorf("failed to shutdown receivers: %w", err)) } srv.telemetry.Logger.Info("Stopping processors...") - if err := srv.builtPipelines.ShutdownProcessors(ctx); err != nil { + if err := srv.host.builtPipelines.ShutdownProcessors(ctx); err != nil { errs = multierr.Append(errs, fmt.Errorf("failed to shutdown processors: %w", err)) } srv.telemetry.Logger.Info("Stopping exporters...") - if err := srv.builtExporters.ShutdownAll(ctx); err != nil { + if err := srv.host.builtExporters.ShutdownAll(ctx); err != nil { errs = multierr.Append(errs, fmt.Errorf("failed to shutdown exporters: %w", err)) } srv.telemetry.Logger.Info("Stopping extensions...") - if err := srv.builtExtensions.ShutdownAll(ctx); err != nil { + if err := srv.host.builtExtensions.ShutdownAll(ctx); err != nil { errs = multierr.Append(errs, fmt.Errorf("failed to shutdown extensions: %w", err)) } return errs } - -// ReportFatalError is used to report to the host that the receiver encountered -// a fatal error (i.e.: an error that the instance can't recover from) after -// its start function has already returned. -func (srv *service) ReportFatalError(err error) { - srv.asyncErrorChannel <- err -} - -func (srv *service) GetFactory(kind component.Kind, componentType config.Type) component.Factory { - switch kind { - case component.KindReceiver: - return srv.factories.Receivers[componentType] - case component.KindProcessor: - return srv.factories.Processors[componentType] - case component.KindExporter: - return srv.factories.Exporters[componentType] - case component.KindExtension: - return srv.factories.Extensions[componentType] - } - return nil -} - -func (srv *service) GetExtensions() map[config.ComponentID]component.Extension { - return srv.builtExtensions.ToMap() -} - -func (srv *service) GetExporters() map[config.DataType]map[config.ComponentID]component.Exporter { - return srv.builtExporters.ToMapByDataType() -} diff --git a/service/service_test.go b/service/service_test.go index 3bdb40d0363..634cd0108d6 100644 --- a/service/service_test.go +++ b/service/service_test.go @@ -38,20 +38,20 @@ func TestService_GetFactory(t *testing.T) { assert.NoError(t, srv.Shutdown(context.Background())) }) - assert.Nil(t, srv.GetFactory(component.KindReceiver, "wrongtype")) - assert.Equal(t, factories.Receivers["nop"], srv.GetFactory(component.KindReceiver, "nop")) + assert.Nil(t, srv.host.GetFactory(component.KindReceiver, "wrongtype")) + assert.Equal(t, factories.Receivers["nop"], srv.host.GetFactory(component.KindReceiver, "nop")) - assert.Nil(t, srv.GetFactory(component.KindProcessor, "wrongtype")) - assert.Equal(t, factories.Processors["nop"], srv.GetFactory(component.KindProcessor, "nop")) + assert.Nil(t, srv.host.GetFactory(component.KindProcessor, "wrongtype")) + assert.Equal(t, factories.Processors["nop"], srv.host.GetFactory(component.KindProcessor, "nop")) - assert.Nil(t, srv.GetFactory(component.KindExporter, "wrongtype")) - assert.Equal(t, factories.Exporters["nop"], srv.GetFactory(component.KindExporter, "nop")) + assert.Nil(t, srv.host.GetFactory(component.KindExporter, "wrongtype")) + assert.Equal(t, factories.Exporters["nop"], srv.host.GetFactory(component.KindExporter, "nop")) - assert.Nil(t, srv.GetFactory(component.KindExtension, "wrongtype")) - assert.Equal(t, factories.Extensions["nop"], srv.GetFactory(component.KindExtension, "nop")) + assert.Nil(t, srv.host.GetFactory(component.KindExtension, "wrongtype")) + assert.Equal(t, factories.Extensions["nop"], srv.host.GetFactory(component.KindExtension, "nop")) // Try retrieve non existing component.Kind. - assert.Nil(t, srv.GetFactory(42, "nop")) + assert.Nil(t, srv.host.GetFactory(42, "nop")) } func TestService_GetExtensions(t *testing.T) { @@ -64,7 +64,7 @@ func TestService_GetExtensions(t *testing.T) { assert.NoError(t, srv.Shutdown(context.Background())) }) - extMap := srv.GetExtensions() + extMap := srv.host.GetExtensions() assert.Len(t, extMap, 1) assert.Contains(t, extMap, config.NewComponentID("nop")) @@ -80,7 +80,7 @@ func TestService_GetExporters(t *testing.T) { assert.NoError(t, srv.Shutdown(context.Background())) }) - expMap := srv.GetExporters() + expMap := srv.host.GetExporters() assert.Len(t, expMap, 3) assert.Len(t, expMap[config.TracesDataType], 1) assert.Contains(t, expMap[config.TracesDataType], config.NewComponentID("nop")) diff --git a/service/telemetry.go b/service/telemetry.go index cb48395cbb9..d45c42e56d6 100644 --- a/service/telemetry.go +++ b/service/telemetry.go @@ -153,7 +153,7 @@ func (tel *colTelemetry) initOnce(col *Collector) error { } func (tel *colTelemetry) initOpenCensus(col *Collector, instanceID string) (http.Handler, error) { - processMetricsViews, err := telemetry2.NewProcessMetricsViews(getBallastSize(col.service)) + processMetricsViews, err := telemetry2.NewProcessMetricsViews(getBallastSize(col.service.host)) if err != nil { return nil, err } diff --git a/service/zpages.go b/service/zpages.go index 3ea6ddef237..a0164fa4b73 100644 --- a/service/zpages.go +++ b/service/zpages.go @@ -40,17 +40,17 @@ const ( zExtensionName = "zextensionname" ) -func (srv *service) RegisterZPages(mux *http.ServeMux, pathPrefix string) { - mux.Handle(path.Join(pathPrefix, tracezPath), otelzpages.NewTracezHandler(srv.zPagesSpanProcessor)) - mux.HandleFunc(path.Join(pathPrefix, servicezPath), srv.handleServicezRequest) - mux.HandleFunc(path.Join(pathPrefix, pipelinezPath), srv.handlePipelinezRequest) +func (host *serviceHost) RegisterZPages(mux *http.ServeMux, pathPrefix string) { + mux.Handle(path.Join(pathPrefix, tracezPath), otelzpages.NewTracezHandler(host.zPagesSpanProcessor)) + mux.HandleFunc(path.Join(pathPrefix, servicezPath), host.handleServicezRequest) + mux.HandleFunc(path.Join(pathPrefix, pipelinezPath), host.handlePipelinezRequest) mux.HandleFunc(path.Join(pathPrefix, featurezPath), handleFeaturezRequest) mux.HandleFunc(path.Join(pathPrefix, extensionzPath), func(w http.ResponseWriter, r *http.Request) { - handleExtensionzRequest(srv, w, r) + handleExtensionzRequest(host, w, r) }) } -func (srv *service) handleServicezRequest(w http.ResponseWriter, r *http.Request) { +func (host *serviceHost) handleServicezRequest(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") zpages.WriteHTMLPageHeader(w, zpages.HeaderData{Title: "service"}) zpages.WriteHTMLComponentHeader(w, zpages.ComponentHeaderData{ @@ -72,7 +72,7 @@ func (srv *service) handleServicezRequest(w http.ResponseWriter, r *http.Request zpages.WriteHTMLPageFooter(w) } -func (srv *service) handlePipelinezRequest(w http.ResponseWriter, r *http.Request) { +func (host *serviceHost) handlePipelinezRequest(w http.ResponseWriter, r *http.Request) { qValues := r.URL.Query() pipelineName := qValues.Get(zPipelineName) componentName := qValues.Get(zComponentName) @@ -80,7 +80,7 @@ func (srv *service) handlePipelinezRequest(w http.ResponseWriter, r *http.Reques w.Header().Set("Content-Type", "text/html; charset=utf-8") zpages.WriteHTMLPageHeader(w, zpages.HeaderData{Title: "Pipelines"}) - zpages.WriteHTMLPipelinesSummaryTable(w, srv.getPipelinesSummaryTableData()) + zpages.WriteHTMLPipelinesSummaryTable(w, host.getPipelinesSummaryTableData()) if pipelineName != "" && componentName != "" && componentKind != "" { fullName := componentName if componentKind == "processor" { @@ -94,11 +94,11 @@ func (srv *service) handlePipelinezRequest(w http.ResponseWriter, r *http.Reques zpages.WriteHTMLPageFooter(w) } -func (srv *service) getPipelinesSummaryTableData() zpages.SummaryPipelinesTableData { +func (host *serviceHost) getPipelinesSummaryTableData() zpages.SummaryPipelinesTableData { data := zpages.SummaryPipelinesTableData{} - data.Rows = make([]zpages.SummaryPipelinesTableRowData, 0, len(srv.builtPipelines)) - for c, p := range srv.builtPipelines { + data.Rows = make([]zpages.SummaryPipelinesTableRowData, 0, len(host.builtPipelines)) + for c, p := range host.builtPipelines { // TODO: Change the template to use ID. var recvs []string for _, recvID := range p.Config.Receivers { From 9be6eccafb94b9a52f0dfc39216cb60855d636cc Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 3 May 2022 16:16:09 -0700 Subject: [PATCH 09/67] Remove deprecated `Delete` pdata func from (v0.47.0) (#5307) --- CHANGELOG.md | 1 + pdata/internal/common.go | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a22084c03da..e4999c2bb22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ - Remove pdata deprecated funcs from 2 versions (v0.48.0) ago. (#5219) - Remove non pdata deprecated funcs/structs (#5220) - `pmetric.Exemplar.ValueType()` now returns new type `ExemplarValueType` (#5233) +- Remove deprecated `Delete` pdata func from (v0.47.0). (#5307) ### 🚩 Deprecations 🚩 diff --git a/pdata/internal/common.go b/pdata/internal/common.go index fb93553ab17..19581368a7a 100644 --- a/pdata/internal/common.go +++ b/pdata/internal/common.go @@ -619,11 +619,6 @@ func (m Map) Get(key string) (Value, bool) { return Value{nil}, false } -// Deprecated: [v0.47.0] Use Remove instead. -func (m Map) Delete(key string) bool { - return m.Remove(key) -} - // Remove removes the entry associated with the key and returns true if the key // was present in the map, otherwise returns false. func (m Map) Remove(key string) bool { From df00d0597d88e429609e81b5d9e1e1df88ae85d3 Mon Sep 17 00:00:00 2001 From: Pavan Krishna Date: Wed, 4 May 2022 12:38:04 -0700 Subject: [PATCH 10/67] Added missing documentation for "reload_interval" configuration in configtls module. (#5306) * added missing documentation for relaod_ineterval configutation of configtls * Update config/configtls/README.md Co-authored-by: Pablo Baeyens Co-authored-by: Bogdan Drutu Co-authored-by: Pablo Baeyens --- config/configtls/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/configtls/README.md b/config/configtls/README.md index 4fd96c13a69..5e4a399a683 100644 --- a/config/configtls/README.md +++ b/config/configtls/README.md @@ -41,6 +41,11 @@ It's recommended to use at least 1.2 as the minimum version. - `max_version` (default = "1.3"): Maximum acceptable TLS version. +Additionally certifaces may be reloaded by setting the below configuration. + +- `reload_interval` (optional) : ReloadInterval specifies the duration after which the certificate will be reloaded. + If not set, it will never be reloaded. + How TLS/mTLS is configured depends on whether configuring the client or server. See below for examples. From b062dd3cd66f9f8935f0a2216968fc5f4244852f Mon Sep 17 00:00:00 2001 From: Kevin Earls Date: Thu, 5 May 2022 17:24:47 +0200 Subject: [PATCH 11/67] Update CONTRIBUTING.md to reference the correct CI platform (#5315) Signed-off-by: Kevin Earls --- CONTRIBUTING.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 84e8790c098..e6648e6e158 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -181,10 +181,9 @@ $ git push fork feature ## General Notes -This project uses Go 1.17.* and CircleCI. +This project uses Go 1.17.* and [Github Actions.](https://github.com/features/actions) -CircleCI uses the Makefile with the `ci` target, it is recommended to -run it before submitting your PR. It runs `gofmt -s` (simplify) and `golint`. +It is recommended to run `make gofmt all` before submitting your PR The dependencies are managed with `go mod` if you work with the sources under your `$GOPATH` you need to set the environment variable `GO111MODULE=on`. From 9230753886a98ffefae111d257d08fd7d115c7fa Mon Sep 17 00:00:00 2001 From: Braydon Kains <93549768+braydonk@users.noreply.github.com> Date: Thu, 5 May 2022 12:48:01 -0400 Subject: [PATCH 12/67] service: prepend the windowsEventLogCore (#5298) * service: prepend the windowsEventLogCore * CHANGELOG: add bugfix entry --- CHANGELOG.md | 2 ++ service/collector_windows.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e4999c2bb22..b63ff92f698 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ ### 🧰 Bug fixes 🧰 +- Fix Windows Event Logs ignoring user-specified logging options (#5298) + ## v0.50.0 Beta ### 🛑 Breaking changes 🛑 diff --git a/service/collector_windows.go b/service/collector_windows.go index a20493694b4..1e060d64a23 100644 --- a/service/collector_windows.go +++ b/service/collector_windows.go @@ -152,8 +152,8 @@ func newWithWindowsEventLogCore(set CollectorSettings, elog *eventlog.Log) (*Col } } set.LoggingOptions = append( - set.LoggingOptions, - zap.WrapCore(withWindowsCore(elog)), + []zap.Option{zap.WrapCore(withWindowsCore(elog))}, + set.LoggingOptions..., ) return New(set) } From 52d1bd3ad128658fe256ee54c71b768da84a6da4 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 5 May 2022 18:32:59 -0700 Subject: [PATCH 13/67] [docs] clean up badges (#5317) The circleci badge is no longer relevant, removing it. Updating the github action badge icon as well and adding go report card badge. --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3c6c799545f..b119153857a 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,18 @@

- - Go Report Card - - Build Status + + Build Status + + + Go Report Card + - Codecov Status + Codecov Status + - GitHub release (latest by date including pre-releases) + GitHub release (latest by date including pre-releases) +

From dfc8d70d8dd6bd11d9c0be8ed7d86550886d59d6 Mon Sep 17 00:00:00 2001 From: Jimmie Han Date: Tue, 10 May 2022 01:16:09 +0800 Subject: [PATCH 14/67] Implement unmarshal traces with jsoniter, make 35x faster than jsonpb(#4817) (#4986) * Implement unmarshal traces with jsoniter, make 40x faster than jsonpb. Signed-off-by: Jimmie Han * ptrace: json unmarshaller use defer * Use jsoniter unmarshaller as default trace unmarshaler. Update unit test style design. * Add kvlist support --- CHANGELOG.md | 1 + cmd/otelcorecol/go.mod | 3 + cmd/otelcorecol/go.sum | 3 + go.mod | 3 + go.sum | 3 + pdata/go.mod | 5 +- pdata/go.sum | 11 +- pdata/ptrace/json.go | 370 +++++++++++++++++++++++++++++++++++- pdata/ptrace/json_test.go | 383 ++++++++++++++++++++++++++++++++++++++ 9 files changed, 775 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b63ff92f698..3e779fb5a2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ - Deprecate global `featuregate` funcs in favor of `GetRegistry` and a public `Registry` type (#5160) ### 💡 Enhancements 💡 +- Add `jsoniter` Unmarshaller (#4817) - Extend config.Map.Unmarshal hook to check map key string to any TextUnmarshaler not only ComponentID (#5244) - Collector will no longer print error with stack trace when the collector is shutdown due to a context cancel. (#5258) diff --git a/cmd/otelcorecol/go.mod b/cmd/otelcorecol/go.mod index d5adab9a601..00cd2613546 100644 --- a/cmd/otelcorecol/go.mod +++ b/cmd/otelcorecol/go.mod @@ -28,6 +28,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/google/uuid v1.3.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/compress v1.15.1 // indirect github.com/knadh/koanf v1.4.1 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect @@ -36,6 +37,8 @@ require ( github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mostynb/go-grpc-compression v1.1.16 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect diff --git a/cmd/otelcorecol/go.sum b/cmd/otelcorecol/go.sum index ad1fd366028..eace5618a58 100644 --- a/cmd/otelcorecol/go.sum +++ b/cmd/otelcorecol/go.sum @@ -231,6 +231,7 @@ github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= @@ -278,9 +279,11 @@ github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mostynb/go-grpc-compression v1.1.16 h1:D9tGUINmcII049pxOj9dl32Fzhp26TrDVQXECoKJqQg= github.com/mostynb/go-grpc-compression v1.1.16/go.mod h1:xxa6UoYynYS2h+5HB/Hglu81iYAp87ARaNmhhwi0s1s= diff --git a/go.mod b/go.mod index a39100fc1ab..cb3d9e5c698 100644 --- a/go.mod +++ b/go.mod @@ -56,10 +56,13 @@ require ( github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect github.com/prometheus/client_golang v1.12.1 // indirect diff --git a/go.sum b/go.sum index 999852aa46f..738b66fc6d4 100644 --- a/go.sum +++ b/go.sum @@ -231,6 +231,7 @@ github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= @@ -278,9 +279,11 @@ github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= github.com/mostynb/go-grpc-compression v1.1.16 h1:D9tGUINmcII049pxOj9dl32Fzhp26TrDVQXECoKJqQg= github.com/mostynb/go-grpc-compression v1.1.16/go.mod h1:xxa6UoYynYS2h+5HB/Hglu81iYAp87ARaNmhhwi0s1s= diff --git a/pdata/go.mod b/pdata/go.mod index 75eafc1acf2..b3307d1c4fe 100644 --- a/pdata/go.mod +++ b/pdata/go.mod @@ -4,14 +4,17 @@ go 1.17 require ( github.com/gogo/protobuf v1.3.2 + github.com/json-iterator/go v1.1.12 github.com/stretchr/testify v1.7.1 google.golang.org/grpc v1.46.0 google.golang.org/protobuf v1.28.0 ) require ( - github.com/davecgh/go-spew v1.1.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang/protobuf v1.5.2 // indirect + github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 // indirect diff --git a/pdata/go.sum b/pdata/go.sum index 1a03346f130..745e4cde04f 100644 --- a/pdata/go.sum +++ b/pdata/go.sum @@ -11,8 +11,9 @@ github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XP 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/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/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= @@ -46,15 +47,23 @@ github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ 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/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 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/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= 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/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= 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.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 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= diff --git a/pdata/ptrace/json.go b/pdata/ptrace/json.go index befe1d9d386..2ad28adf209 100644 --- a/pdata/ptrace/json.go +++ b/pdata/ptrace/json.go @@ -16,10 +16,14 @@ package ptrace // import "go.opentelemetry.io/collector/pdata/ptrace" import ( "bytes" + "encoding/base64" + "fmt" "github.com/gogo/protobuf/jsonpb" + jsoniter "github.com/json-iterator/go" "go.opentelemetry.io/collector/pdata/internal" + otlpcommon "go.opentelemetry.io/collector/pdata/internal/data/protogen/common/v1" otlptrace "go.opentelemetry.io/collector/pdata/internal/data/protogen/trace/v1" "go.opentelemetry.io/collector/pdata/internal/otlp" ) @@ -44,20 +48,376 @@ func (e *jsonMarshaler) MarshalTraces(td Traces) ([]byte, error) { return buf.Bytes(), err } -type jsonUnmarshaler struct { - delegate jsonpb.Unmarshaler -} - // NewJSONUnmarshaler returns a model.Unmarshaler. Unmarshals from OTLP json bytes. func NewJSONUnmarshaler() Unmarshaler { return newJSONUnmarshaler() } +type jsonUnmarshaler struct { +} + func newJSONUnmarshaler() *jsonUnmarshaler { - return &jsonUnmarshaler{delegate: jsonpb.Unmarshaler{}} + return &jsonUnmarshaler{} } func (d *jsonUnmarshaler) UnmarshalTraces(buf []byte) (Traces, error) { + iter := jsoniter.ConfigFastest.BorrowIterator(buf) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + td := readTraceData(iter) + err := iter.Error + return internal.TracesFromProto(td), err +} + +func readTraceData(iter *jsoniter.Iterator) otlptrace.TracesData { + td := otlptrace.TracesData{} + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "resourceSpans", "resource_spans": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + td.ResourceSpans = append(td.ResourceSpans, readResourceSpans(iter)) + return true + }) + default: + iter.ReportError("root", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + return td +} + +func readResourceSpans(iter *jsoniter.Iterator) *otlptrace.ResourceSpans { + rs := &otlptrace.ResourceSpans{} + + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "resource": + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "attributes": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + rs.Resource.Attributes = append(rs.Resource.Attributes, readAttribute(iter)) + return true + }) + case "droppedAttributesCount", "dropped_attributes_count": + rs.Resource.DroppedAttributesCount = iter.ReadUint32() + default: + iter.ReportError("readResourceSpans.resource", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + case "instrumentationLibrarySpans", "instrumentation_library_spans", "scopeSpans", "scope_spans": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + rs.ScopeSpans = append(rs.ScopeSpans, + readInstrumentationLibrarySpans(iter)) + return true + }) + case "schemaUrl", "schema_url": + rs.SchemaUrl = iter.ReadString() + default: + iter.ReportError("readResourceSpans", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + return rs +} + +func readInstrumentationLibrarySpans(iter *jsoniter.Iterator) *otlptrace.ScopeSpans { + ils := &otlptrace.ScopeSpans{} + + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "instrumentationLibrary", "instrumentation_library", "scope": + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "name": + ils.Scope.Name = iter.ReadString() + case "version": + ils.Scope.Version = iter.ReadString() + default: + iter.ReportError("readInstrumentationLibrarySpans.instrumentationLibrary", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + case "spans": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + ils.Spans = append(ils.Spans, readSpan(iter)) + return true + }) + case "schemaUrl", "schema_url": + ils.SchemaUrl = iter.ReadString() + default: + iter.ReportError("readInstrumentationLibrarySpans", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + return ils +} + +func readSpan(iter *jsoniter.Iterator) *otlptrace.Span { + sp := &otlptrace.Span{} + + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "traceId", "trace_id": + if err := sp.TraceId.UnmarshalJSON([]byte(iter.ReadString())); err != nil { + iter.ReportError("readSpan.traceId", fmt.Sprintf("parse trace_id:%v", err)) + } + case "spanId", "span_id": + if err := sp.SpanId.UnmarshalJSON([]byte(iter.ReadString())); err != nil { + iter.ReportError("readSpan.spanId", fmt.Sprintf("parse span_id:%v", err)) + } + case "traceState", "trace_state": + sp.TraceState = iter.ReadString() + case "parentSpanId", "parent_span_id": + if err := sp.ParentSpanId.UnmarshalJSON([]byte(iter.ReadString())); err != nil { + iter.ReportError("readSpan.parentSpanId", fmt.Sprintf("parse parent_span_id:%v", err)) + } + case "name": + sp.Name = iter.ReadString() + case "kind": + sp.Kind = readSpanKind(iter) + case "startTimeUnixNano", "start_time_unix_nano": + sp.StartTimeUnixNano = uint64(readInt64(iter)) + case "endTimeUnixNano", "end_time_unix_nano": + sp.EndTimeUnixNano = uint64(readInt64(iter)) + case "attributes": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + sp.Attributes = append(sp.Attributes, readAttribute(iter)) + return true + }) + case "droppedAttributesCount", "dropped_attributes_count": + sp.DroppedAttributesCount = iter.ReadUint32() + case "events": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + sp.Events = append(sp.Events, readSpanEvent(iter)) + return true + }) + case "droppedEventsCount", "dropped_events_count": + sp.DroppedEventsCount = iter.ReadUint32() + case "links": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + sp.Links = append(sp.Links, readSpanLink(iter)) + return true + }) + case "droppedLinksCount", "dropped_links_count": + sp.DroppedLinksCount = iter.ReadUint32() + case "status": + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "message": + sp.Status.Message = iter.ReadString() + case "code": + sp.Status.Code = readStatusCode(iter) + default: + iter.ReportError("readSpan.status", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + default: + iter.ReportError("readSpan", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + return sp +} + +func readSpanLink(iter *jsoniter.Iterator) *otlptrace.Span_Link { + link := &otlptrace.Span_Link{} + + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "traceId", "trace_id": + if err := link.TraceId.UnmarshalJSON([]byte(iter.ReadString())); err != nil { + iter.ReportError("readSpanLink", fmt.Sprintf("parse trace_id:%v", err)) + } + case "spanId", "span_id": + if err := link.SpanId.UnmarshalJSON([]byte(iter.ReadString())); err != nil { + iter.ReportError("readSpanLink", fmt.Sprintf("parse span_id:%v", err)) + } + case "traceState", "trace_state": + link.TraceState = iter.ReadString() + case "attributes": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + link.Attributes = append(link.Attributes, readAttribute(iter)) + return true + }) + case "droppedAttributesCount", "dropped_attributes_count": + link.DroppedAttributesCount = iter.ReadUint32() + default: + iter.ReportError("readSpanLink", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + return link +} + +func readSpanEvent(iter *jsoniter.Iterator) *otlptrace.Span_Event { + event := &otlptrace.Span_Event{} + + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "timeUnixNano", "time_unix_nano": + event.TimeUnixNano = uint64(readInt64(iter)) + case "name": + event.Name = iter.ReadString() + case "attributes": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + event.Attributes = append(event.Attributes, readAttribute(iter)) + return true + }) + case "droppedAttributesCount", "dropped_attributes_count": + event.DroppedAttributesCount = iter.ReadUint32() + default: + iter.ReportError("readSpanEvent", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + return event +} + +func readAttribute(iter *jsoniter.Iterator) otlpcommon.KeyValue { + kv := otlpcommon.KeyValue{} + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "key": + kv.Key = iter.ReadString() + case "value": + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + kv.Value = readAnyValue(iter, f) + return true + }) + default: + iter.ReportError("readAttribute", fmt.Sprintf("unknown field:%v", f)) + } + return true + }) + return kv +} + +func readAnyValue(iter *jsoniter.Iterator, f string) otlpcommon.AnyValue { + switch f { + case "stringValue", "string_value": + return otlpcommon.AnyValue{ + Value: &otlpcommon.AnyValue_StringValue{ + StringValue: iter.ReadString(), + }, + } + case "boolValue", "bool_value": + return otlpcommon.AnyValue{ + Value: &otlpcommon.AnyValue_BoolValue{ + BoolValue: iter.ReadBool(), + }, + } + case "intValue", "int_value": + return otlpcommon.AnyValue{ + Value: &otlpcommon.AnyValue_IntValue{ + IntValue: readInt64(iter), + }, + } + case "doubleValue", "double_value": + return otlpcommon.AnyValue{ + Value: &otlpcommon.AnyValue_DoubleValue{ + DoubleValue: iter.ReadFloat64(), + }, + } + case "bytesValue", "bytes_value": + v, err := base64.StdEncoding.DecodeString(iter.ReadString()) + if err != nil { + iter.ReportError("bytesValue", fmt.Sprintf("base64 decode:%v", err)) + return otlpcommon.AnyValue{} + } + return otlpcommon.AnyValue{ + Value: &otlpcommon.AnyValue_BytesValue{ + BytesValue: v, + }, + } + case "arrayValue", "array_value": + return otlpcommon.AnyValue{ + Value: &otlpcommon.AnyValue_ArrayValue{ + ArrayValue: readArray(iter), + }, + } + case "kvlistValue", "kvlist_value": + return otlpcommon.AnyValue{ + Value: &otlpcommon.AnyValue_KvlistValue{ + KvlistValue: readKvlistValue(iter), + }, + } + default: + iter.ReportError("readAnyValue", fmt.Sprintf("unknown field:%v", f)) + return otlpcommon.AnyValue{} + } +} + +func readArray(iter *jsoniter.Iterator) *otlpcommon.ArrayValue { + v := &otlpcommon.ArrayValue{} + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "values": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + v.Values = append(v.Values, readAnyValue(iter, f)) + return true + }) + return true + }) + default: + iter.ReportError("readArray", fmt.Sprintf("unknown field:%s", f)) + } + return true + }) + return v +} + +func readKvlistValue(iter *jsoniter.Iterator) *otlpcommon.KeyValueList { + v := &otlpcommon.KeyValueList{} + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "values": + iter.ReadArrayCB(func(iter *jsoniter.Iterator) bool { + v.Values = append(v.Values, readAttribute(iter)) + return true + }) + default: + iter.ReportError("readKvlistValue", fmt.Sprintf("unknown field:%s", f)) + } + return true + }) + return v +} + +func readInt64(iter *jsoniter.Iterator) int64 { + return iter.ReadAny().ToInt64() +} + +func readSpanKind(iter *jsoniter.Iterator) otlptrace.Span_SpanKind { + any := iter.ReadAny() + if v := any.ToInt(); v > 0 { + return otlptrace.Span_SpanKind(v) + } + v := any.ToString() + return otlptrace.Span_SpanKind(otlptrace.Span_SpanKind_value[v]) +} + +func readStatusCode(iter *jsoniter.Iterator) otlptrace.Status_StatusCode { + any := iter.ReadAny() + if v := any.ToInt(); v > 0 { + return otlptrace.Status_StatusCode(v) + } + v := any.ToString() + return otlptrace.Status_StatusCode(otlptrace.Status_StatusCode_value[v]) +} + +// jsonpbUnmarshaler use standard `jsonpb.Unmarshaler` for benchmark and unit test. +type jsonpbUnmarshaler struct { + delegate jsonpb.Unmarshaler +} + +func newJSONPBUnmarshaler() *jsonpbUnmarshaler { + return &jsonpbUnmarshaler{delegate: jsonpb.Unmarshaler{}} +} + +func (d *jsonpbUnmarshaler) UnmarshalTraces(buf []byte) (Traces, error) { td := otlptrace.TracesData{} if err := d.delegate.Unmarshal(bytes.NewReader(buf), &td); err != nil { return Traces{}, err diff --git a/pdata/ptrace/json_test.go b/pdata/ptrace/json_test.go index 78a6eaf1fc1..b02a10828ca 100644 --- a/pdata/ptrace/json_test.go +++ b/pdata/ptrace/json_test.go @@ -15,9 +15,15 @@ package ptrace import ( + "fmt" "testing" + "time" + jsoniter "github.com/json-iterator/go" "github.com/stretchr/testify/assert" + + "go.opentelemetry.io/collector/pdata/internal" + otlptrace "go.opentelemetry.io/collector/pdata/internal/data/protogen/trace/v1" ) var tracesOTLP = func() Traces { @@ -52,3 +58,380 @@ func TestTracesJSON_Marshal(t *testing.T) { assert.NoError(t, err) assert.Equal(t, tracesJSON, string(jsonBuf)) } + +var tracesOTLPFull = func() Traces { + traceID := internal.NewTraceID([16]byte{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10}) + spanID := internal.NewSpanID([8]byte{0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18}) + td := NewTraces() + // Add ResourceSpans. + rs := td.ResourceSpans().AppendEmpty() + rs.SetSchemaUrl("schemaURL") + // Add resource. + rs.Resource().Attributes().UpsertString("host.name", "testHost") + rs.Resource().Attributes().UpsertString("service.name", "testService") + rs.Resource().SetDroppedAttributesCount(1) + // Add InstrumentationLibrarySpans. + il := rs.ScopeSpans().AppendEmpty() + il.Scope().SetName("instrumentation name") + il.Scope().SetVersion("instrumentation version") + il.SetSchemaUrl("schemaURL") + // Add spans. + sp := il.Spans().AppendEmpty() + sp.SetName("testSpan") + sp.SetKind(internal.SpanKindClient) + sp.SetDroppedAttributesCount(1) + sp.SetStartTimestamp(internal.NewTimestampFromTime(time.Now())) + sp.SetTraceID(traceID) + sp.SetSpanID(spanID) + sp.SetDroppedEventsCount(1) + sp.SetDroppedLinksCount(1) + sp.SetEndTimestamp(internal.NewTimestampFromTime(time.Now())) + sp.SetParentSpanID(spanID) + sp.SetTraceState("state") + sp.Status().SetCode(internal.StatusCodeOk) + sp.Status().SetMessage("message") + // Add attributes. + sp.Attributes().UpsertString("string", "value") + sp.Attributes().UpsertBool("bool", true) + sp.Attributes().UpsertInt("int", 1) + sp.Attributes().UpsertDouble("double", 1.1) + sp.Attributes().UpsertBytes("bytes", []byte("foo")) + arr := internal.NewValueSlice() + arr.SliceVal().AppendEmpty().SetIntVal(1) + arr.SliceVal().AppendEmpty().SetStringVal("str") + sp.Attributes().Upsert("array", arr) + kvList := internal.NewValueMap() + kvList.MapVal().Upsert("int", internal.NewValueInt(1)) + kvList.MapVal().Upsert("string", internal.NewValueString("string")) + sp.Attributes().Upsert("kvList", kvList) + // Add events. + event := sp.Events().AppendEmpty() + event.SetName("eventName") + event.SetTimestamp(internal.NewTimestampFromTime(time.Now())) + event.SetDroppedAttributesCount(1) + event.Attributes().UpsertString("string", "value") + event.Attributes().UpsertBool("bool", true) + event.Attributes().UpsertInt("int", 1) + event.Attributes().UpsertDouble("double", 1.1) + event.Attributes().UpsertBytes("bytes", []byte("foo")) + // Add links. + link := sp.Links().AppendEmpty() + link.SetTraceState("state") + link.SetTraceID(traceID) + link.SetSpanID(spanID) + link.SetDroppedAttributesCount(1) + link.Attributes().UpsertString("string", "value") + link.Attributes().UpsertBool("bool", true) + link.Attributes().UpsertInt("int", 1) + link.Attributes().UpsertDouble("double", 1.1) + link.Attributes().UpsertBytes("bytes", []byte("foo")) + // Add another span. + sp2 := il.Spans().AppendEmpty() + sp2.SetName("testSpan2") + return td +}() + +func TestJSONFull(t *testing.T) { + encoder := NewJSONMarshaler() + jsonBuf, err := encoder.MarshalTraces(tracesOTLPFull) + assert.NoError(t, err) + + decoder := newJSONUnmarshaler() + got, err := decoder.UnmarshalTraces(jsonBuf) + assert.NoError(t, err) + assert.EqualValues(t, tracesOTLPFull, got) +} + +func BenchmarkJSONPBUnmarshal(b *testing.B) { + b.ReportAllocs() + + encoder := NewJSONMarshaler() + jsonBuf, err := encoder.MarshalTraces(tracesOTLPFull) + assert.NoError(b, err) + decoder := newJSONPBUnmarshaler() + + b.ResetTimer() + b.RunParallel(func(pb *testing.PB) { + for pb.Next() { + _, err := decoder.UnmarshalTraces(jsonBuf) + assert.NoError(b, err) + } + }) +} + +func BenchmarkJSONUnmarshal(b *testing.B) { + b.ReportAllocs() + + encoder := NewJSONMarshaler() + jsonBuf, err := encoder.MarshalTraces(tracesOTLPFull) + assert.NoError(b, err) + decoder := newJSONUnmarshaler() + + b.ResetTimer() + b.RunParallel(func(pb *testing.PB) { + for pb.Next() { + _, err := decoder.UnmarshalTraces(jsonBuf) + assert.NoError(b, err) + } + }) +} + +func TestReadInt64(t *testing.T) { + var data = `{"intAsNumber":1,"intAsString":"1"}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(data)) + iter.ReadObjectCB(func(iter *jsoniter.Iterator, f string) bool { + switch f { + case "intAsNumber": + v := readInt64(iter) + assert.Equal(t, int64(1), v) + case "intAsString": + v := readInt64(iter) + assert.Equal(t, int64(1), v) + } + return true + }) + assert.NoError(t, iter.Error) +} + +func TestReadTraceDataUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readTraceData(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadResourceSpansUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readResourceSpans(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadResourceSpansUnknownResourceField(t *testing.T) { + jsonStr := `{"resource":{"extra":""}}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readResourceSpans(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadInstrumentationLibrarySpansUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readInstrumentationLibrarySpans(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadInstrumentationLibrarySpansUnknownInstrumentationLibraryField(t *testing.T) { + jsonStr := `{"instrumentationLibrary":{"extra":""}}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readInstrumentationLibrarySpans(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadSpanUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpan(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadSpanUnknownStatusField(t *testing.T) { + jsonStr := `{"status":{"extra":""}}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpan(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} +func TestReadSpanInvalidTraceIDField(t *testing.T) { + jsonStr := `{"trace_id":"--"}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpan(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "parse trace_id") + } +} +func TestReadSpanInvalidSpanIDField(t *testing.T) { + jsonStr := `{"span_id":"--"}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpan(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "parse span_id") + } +} +func TestReadSpanInvalidParentSpanIDField(t *testing.T) { + jsonStr := `{"parent_span_id":"--"}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpan(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "parse parent_span_id") + } +} + +func TestReadSpanLinkUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpanLink(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadSpanLinkInvalidTraceIDField(t *testing.T) { + jsonStr := `{"trace_id":"--"}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpanLink(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "parse trace_id") + } +} + +func TestReadSpanLinkInvalidSpanIDField(t *testing.T) { + jsonStr := `{"span_id":"--"}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpanLink(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "parse span_id") + } +} + +func TestReadSpanEventUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readSpanEvent(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadAttributeUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readAttribute(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadAnyValueUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readAnyValue(iter, "") + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadAnyValueInvliadBytesValue(t *testing.T) { + jsonStr := `"--"` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readAnyValue(iter, "bytesValue") + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "base64") + } +} + +func TestReadArrayUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readArray(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadKvlistValueUnknownField(t *testing.T) { + jsonStr := `{"extra":""}` + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + readKvlistValue(iter) + if assert.Error(t, iter.Error) { + assert.Contains(t, iter.Error.Error(), "unknown field") + } +} + +func TestReadSpanKind(t *testing.T) { + tests := []struct { + name string + jsonStr string + want otlptrace.Span_SpanKind + }{ + { + name: "string", + jsonStr: fmt.Sprintf(`"%s"`, otlptrace.Span_SPAN_KIND_INTERNAL.String()), + want: otlptrace.Span_SPAN_KIND_INTERNAL, + }, + { + name: "int", + jsonStr: fmt.Sprintf("%d", otlptrace.Span_SPAN_KIND_INTERNAL), + want: otlptrace.Span_SPAN_KIND_INTERNAL, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(tt.jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + if got := readSpanKind(iter); got != tt.want { + t.Errorf("readSpanKind() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestReadStatusCode(t *testing.T) { + tests := []struct { + name string + jsonStr string + want otlptrace.Status_StatusCode + }{ + { + name: "string", + jsonStr: fmt.Sprintf(`"%s"`, otlptrace.Status_STATUS_CODE_ERROR.String()), + want: otlptrace.Status_STATUS_CODE_ERROR, + }, + { + name: "int", + jsonStr: fmt.Sprintf("%d", otlptrace.Status_STATUS_CODE_ERROR), + want: otlptrace.Status_STATUS_CODE_ERROR, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + iter := jsoniter.ConfigFastest.BorrowIterator([]byte(tt.jsonStr)) + defer jsoniter.ConfigFastest.ReturnIterator(iter) + if got := readStatusCode(iter); got != tt.want { + t.Errorf("readStatusCode() = %v, want %v", got, tt.want) + } + }) + } +} From 781b97c7a305787c07147e9e0dff243dd642979e Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Mon, 9 May 2022 10:45:36 -0700 Subject: [PATCH 15/67] [chore] bump dependencies (#5326) Bump github.com/klauspost/compress from 1.15.1 to 1.15.3 Bump github.com/shirou/gopsutil/v3 from 3.22.3 to 3.22.4 --- cmd/otelcorecol/go.mod | 4 ++-- cmd/otelcorecol/go.sum | 8 ++++---- go.mod | 4 ++-- go.sum | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/otelcorecol/go.mod b/cmd/otelcorecol/go.mod index 00cd2613546..91579cfd502 100644 --- a/cmd/otelcorecol/go.mod +++ b/cmd/otelcorecol/go.mod @@ -29,7 +29,7 @@ require ( github.com/google/uuid v1.3.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.15.1 // indirect + github.com/klauspost/compress v1.15.3 // indirect github.com/knadh/koanf v1.4.1 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/magiconair/properties v1.8.6 // indirect @@ -48,7 +48,7 @@ require ( github.com/prometheus/procfs v0.7.3 // indirect github.com/prometheus/statsd_exporter v0.21.0 // indirect github.com/rs/cors v1.8.2 // indirect - github.com/shirou/gopsutil/v3 v3.22.3 // indirect + github.com/shirou/gopsutil/v3 v3.22.4 // indirect github.com/spf13/cobra v1.4.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/tklauser/go-sysconf v0.3.10 // indirect diff --git a/cmd/otelcorecol/go.sum b/cmd/otelcorecol/go.sum index eace5618a58..f575f94e498 100644 --- a/cmd/otelcorecol/go.sum +++ b/cmd/otelcorecol/go.sum @@ -240,8 +240,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8 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/klauspost/compress v1.14.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.1 h1:y9FcTHGyrebwfP0ZZqFiaxTaiDnUrGkJkI+f583BL1A= -github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.15.3 h1:wmfu2iqj9q22SyMINp1uQ8C2/V4M1phJdmH9fG4nba0= +github.com/klauspost/compress v1.15.3/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/knadh/koanf v1.4.1 h1:Z0VGW/uo8NJmjd+L1Dc3S5frq6c62w5xQ9Yf4Mg3wFQ= github.com/knadh/koanf v1.4.1/go.mod h1:1cfH5223ZeZUOs8FU2UdTmaNfHpqgtjV0+NHjRO43gs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -347,8 +347,8 @@ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/schollz/progressbar/v2 v2.13.2/go.mod h1:6YZjqdthH6SCZKv2rqGryrxPtfmRB/DWZxSMfCXPyD8= -github.com/shirou/gopsutil/v3 v3.22.3 h1:UebRzEomgMpv61e3hgD1tGooqX5trFbdU/ehphbHd00= -github.com/shirou/gopsutil/v3 v3.22.3/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= +github.com/shirou/gopsutil/v3 v3.22.4 h1:srAQaiX6jX/cYL6q29aE0m8lOskT9CurZ9N61YR3yoI= +github.com/shirou/gopsutil/v3 v3.22.4/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= diff --git a/go.mod b/go.mod index cb3d9e5c698..5ccc11250c0 100644 --- a/go.mod +++ b/go.mod @@ -8,14 +8,14 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/golang/snappy v0.0.4 github.com/google/uuid v1.3.0 - github.com/klauspost/compress v1.15.1 + github.com/klauspost/compress v1.15.3 github.com/knadh/koanf v1.4.1 github.com/magiconair/properties v1.8.6 github.com/mitchellh/mapstructure v1.5.0 github.com/mostynb/go-grpc-compression v1.1.16 github.com/prometheus/common v0.34.0 github.com/rs/cors v1.8.2 - github.com/shirou/gopsutil/v3 v3.22.3 + github.com/shirou/gopsutil/v3 v3.22.4 github.com/spf13/cast v1.4.1 github.com/spf13/cobra v1.4.0 github.com/stretchr/testify v1.7.1 diff --git a/go.sum b/go.sum index 738b66fc6d4..4da6b4d95f5 100644 --- a/go.sum +++ b/go.sum @@ -240,8 +240,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8 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/klauspost/compress v1.14.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.1 h1:y9FcTHGyrebwfP0ZZqFiaxTaiDnUrGkJkI+f583BL1A= -github.com/klauspost/compress v1.15.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/klauspost/compress v1.15.3 h1:wmfu2iqj9q22SyMINp1uQ8C2/V4M1phJdmH9fG4nba0= +github.com/klauspost/compress v1.15.3/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/knadh/koanf v1.4.1 h1:Z0VGW/uo8NJmjd+L1Dc3S5frq6c62w5xQ9Yf4Mg3wFQ= github.com/knadh/koanf v1.4.1/go.mod h1:1cfH5223ZeZUOs8FU2UdTmaNfHpqgtjV0+NHjRO43gs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -347,8 +347,8 @@ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= github.com/schollz/progressbar/v2 v2.13.2/go.mod h1:6YZjqdthH6SCZKv2rqGryrxPtfmRB/DWZxSMfCXPyD8= -github.com/shirou/gopsutil/v3 v3.22.3 h1:UebRzEomgMpv61e3hgD1tGooqX5trFbdU/ehphbHd00= -github.com/shirou/gopsutil/v3 v3.22.3/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= +github.com/shirou/gopsutil/v3 v3.22.4 h1:srAQaiX6jX/cYL6q29aE0m8lOskT9CurZ9N61YR3yoI= +github.com/shirou/gopsutil/v3 v3.22.4/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= From 79911de9929cd1e44846302d0d8fc1e317a1e3b6 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Tue, 10 May 2022 15:10:20 -0700 Subject: [PATCH 16/67] [pdata] Make Slice.AsRaw() method exported (#5311) --- CHANGELOG.md | 2 ++ pdata/internal/common.go | 14 +++++++------- pdata/internal/common_test.go | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e779fb5a2b..47661450d5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ ### 💡 Enhancements 💡 +- `pdata`: Expose `pcommon.NewSliceFromRay` and `pcommon.Slice.AsRaw` functions (#5298) + ### 🧰 Bug fixes 🧰 - Fix Windows Event Logs ignoring user-specified logging options (#5298) diff --git a/pdata/internal/common.go b/pdata/internal/common.go index 19581368a7a..ef31705553d 100644 --- a/pdata/internal/common.go +++ b/pdata/internal/common.go @@ -172,7 +172,7 @@ func newValueFromRaw(iv interface{}) Value { return mv case []interface{}: av := NewValueSlice() - newSliceFromRaw(tv).CopyTo(av.SliceVal()) + NewSliceFromRaw(tv).CopyTo(av.SliceVal()) return av default: return NewValueString(fmt.Sprintf("", tv)) @@ -448,7 +448,7 @@ func (v Value) AsString() string { return base64.StdEncoding.EncodeToString(v.BytesVal()) case ValueTypeSlice: - jsonStr, _ := json.Marshal(v.SliceVal().asRaw()) + jsonStr, _ := json.Marshal(v.SliceVal().AsRaw()) return string(jsonStr) default: @@ -504,7 +504,7 @@ func (v Value) asRaw() interface{} { case ValueTypeMap: return v.MapVal().AsRaw() case ValueTypeSlice: - return v.SliceVal().asRaw() + return v.SliceVal().AsRaw() } return fmt.Sprintf("", v.Type()) } @@ -914,8 +914,8 @@ func (m Map) AsRaw() map[string]interface{} { return rawMap } -// newSliceFromRaw creates a Slice with values from the given []interface{}. -func newSliceFromRaw(rawSlice []interface{}) Slice { +// NewSliceFromRaw creates a Slice with values from the given []interface{}. +func NewSliceFromRaw(rawSlice []interface{}) Slice { if len(rawSlice) == 0 { v := []otlpcommon.AnyValue(nil) return Slice{&v} @@ -927,8 +927,8 @@ func newSliceFromRaw(rawSlice []interface{}) Slice { return Slice{&origs} } -// asRaw creates a slice out of a Slice. -func (es Slice) asRaw() []interface{} { +// AsRaw converts the Slice to a standard go slice. +func (es Slice) AsRaw() []interface{} { rawSlice := make([]interface{}, 0, es.Len()) for i := 0; i < es.Len(); i++ { rawSlice = append(rawSlice, es.At(i).asRaw()) diff --git a/pdata/internal/common_test.go b/pdata/internal/common_test.go index 45713c620f2..73d82d56003 100644 --- a/pdata/internal/common_test.go +++ b/pdata/internal/common_test.go @@ -1306,7 +1306,7 @@ func TestNewValueFromRaw(t *testing.T) { input: []interface{}{"v1", "v2"}, expected: (func() Value { s := NewValueSlice() - newSliceFromRaw([]interface{}{"v1", "v2"}).CopyTo(s.SliceVal()) + NewSliceFromRaw([]interface{}{"v1", "v2"}).CopyTo(s.SliceVal()) return s })(), }, From e4363145e4d293d6e1226c8e44af3b50c3bf7b77 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 10 May 2022 15:56:28 -0700 Subject: [PATCH 17/67] Merge cache for go mod and tools. go mod cache already got invalidated when tools changed (#5329) Signed-off-by: Bogdan Drutu --- .github/workflows/build-and-test.yml | 88 ++++++++++------------------ 1 file changed, 32 insertions(+), 56 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 4b8ddbb92fa..d25da03b5f3 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -21,22 +21,18 @@ jobs: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go - id: module-cache + id: go-cache uses: actions/cache@v3 with: - path: /home/runner/go/pkg/mod - key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + path: | + /home/runner/go/bin + /home/runner/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Install dependencies - if: steps.module-cache.outputs.cache-hit != 'true' + if: steps.go-cache.outputs.cache-hit != 'true' run: make gomoddownload - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} - name: Install Tools - if: steps.tool-cache.outputs.cache-hit != 'true' + if: steps.go-cache.outputs.cache-hit != 'true' run: make install-tools lint: runs-on: ubuntu-latest @@ -53,17 +49,13 @@ jobs: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go - id: module-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/pkg/mod - key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - - name: Cache Tools - id: tool-cache + id: go-cache uses: actions/cache@v3 with: - path: /home/runner/go/bin - key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} + path: | + /home/runner/go/bin + /home/runner/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: golint run: make -j2 golint - name: goimpi @@ -84,17 +76,13 @@ jobs: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go - id: module-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/pkg/mod - key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - - name: Cache Tools - id: tool-cache + id: go-cache uses: actions/cache@v3 with: - path: /home/runner/go/bin - key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} + path: | + /home/runner/go/bin + /home/runner/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: checklicense run: make checklicense - name: misspell @@ -141,17 +129,13 @@ jobs: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go - id: module-cache + id: go-cache uses: actions/cache@v3 with: - path: /home/runner/go/pkg/mod - key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - - name: Cache Tools - id: tool-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/bin - key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} + path: | + /home/runner/go/bin + /home/runner/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Build uses: actions/cache@v3 with: @@ -174,17 +158,13 @@ jobs: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go - id: module-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/pkg/mod - key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - - name: Cache Tools - id: tool-cache + id: go-cache uses: actions/cache@v3 with: - path: /home/runner/go/bin - key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} + path: | + /home/runner/go/bin + /home/runner/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Build uses: actions/cache@v3 with: @@ -237,17 +217,13 @@ jobs: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go - id: module-cache - uses: actions/cache@v3 - with: - path: /home/runner/go/pkg/mod - key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - - name: Cache Tools - id: tool-cache + id: go-cache uses: actions/cache@v3 with: - path: /home/runner/go/bin - key: tools-${{ runner.os }}-${{ hashFiles('./internal/tools/go.mod', './cmd/mdatagen/go.mod', './cmd/mdatagen/*.go') }} + path: | + /home/runner/go/bin + /home/runner/go/pkg/mod + key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Build env: GOOS: ${{matrix.goos}} From b781f85fa35cd5aa64b9e24673d3c0a4e298b930 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 10 May 2022 16:07:53 -0700 Subject: [PATCH 18/67] Fix windows go cache path, per GA examples (#5330) See https://github.com/actions/cache/blob/main/examples.md#go---modules Signed-off-by: Bogdan Drutu --- .github/workflows/build-and-test-windows.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test-windows.yaml b/.github/workflows/build-and-test-windows.yaml index 387b0961a45..04d2b514451 100644 --- a/.github/workflows/build-and-test-windows.yaml +++ b/.github/workflows/build-and-test-windows.yaml @@ -27,8 +27,8 @@ jobs: cache-name: cache-go-modules with: path: | - \Users\runneradmin\go\pkg\mod - %LocalAppData%\go-build - key: go-pkg-mod-${{ runner.os }}-${{ hashFiles('./go.mod', '**/go.sum') }} + ~\go\pkg\mod + ~\AppData\Local\go-build + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - name: Run Unit tests run: go test ./... From eee8ff7070f44bb4aa2fbdc1eaa7133a51dd77eb Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 10 May 2022 16:27:27 -0700 Subject: [PATCH 19/67] Fix go cache path per Github Action example, fix build for different go versions (#5331) Signed-off-by: Bogdan Drutu --- .github/workflows/build-and-test.yml | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index d25da03b5f3..f7e119ec312 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -25,8 +25,8 @@ jobs: uses: actions/cache@v3 with: path: | - /home/runner/go/bin - /home/runner/go/pkg/mod + ~/go/bin + ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Install dependencies if: steps.go-cache.outputs.cache-hit != 'true' @@ -53,8 +53,8 @@ jobs: uses: actions/cache@v3 with: path: | - /home/runner/go/bin - /home/runner/go/pkg/mod + ~/go/bin + ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: golint run: make -j2 golint @@ -80,8 +80,8 @@ jobs: uses: actions/cache@v3 with: path: | - /home/runner/go/bin - /home/runner/go/pkg/mod + ~/go/bin + ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: checklicense run: make checklicense @@ -133,14 +133,14 @@ jobs: uses: actions/cache@v3 with: path: | - /home/runner/go/bin - /home/runner/go/pkg/mod + ~/go/bin + ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Build uses: actions/cache@v3 with: - path: /home/runner/.cache/go-build - key: go-build-unittest-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + path: ~/.cache/go-build + key: unittest-${{ runner.os }}-go-build-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - name: Run Unit Tests run: make gotest test-coverage: @@ -162,14 +162,14 @@ jobs: uses: actions/cache@v3 with: path: | - /home/runner/go/bin - /home/runner/go/pkg/mod + ~/go/bin + ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Cache Build uses: actions/cache@v3 with: - path: /home/runner/.cache/go-build - key: go-build-coverage-${{ runner.os }}-${{ hashFiles('**/go.sum') }} + path: ~/.cache/go-build + key: coverage-${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} - name: Run Unit Tests With Coverage run: make gotest-with-cover - name: Upload coverage report @@ -221,8 +221,8 @@ jobs: uses: actions/cache@v3 with: path: | - /home/runner/go/bin - /home/runner/go/pkg/mod + ~/go/bin + ~/go/pkg/mod key: go-cache-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - name: Build env: From 9d84bffb4d1453a5a792f59e2454ccf2dab76b65 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 11 May 2022 08:19:01 -0700 Subject: [PATCH 20/67] Bump github.com/golangci/golangci-lint to latest (#5332) Signed-off-by: Bogdan Drutu --- internal/tools/go.mod | 77 ++++++++------- internal/tools/go.sum | 216 ++++++++++++++++++++++++++---------------- 2 files changed, 175 insertions(+), 118 deletions(-) diff --git a/internal/tools/go.mod b/internal/tools/go.mod index 4ba4cf27b14..ebe91e6b493 100644 --- a/internal/tools/go.mod +++ b/internal/tools/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/client9/misspell v0.3.4 - github.com/golangci/golangci-lint v1.45.2 + github.com/golangci/golangci-lint v1.46.0 github.com/google/addlicense v1.0.0 github.com/jcchavezs/porto v0.4.0 github.com/ory/go-acc v0.2.8 @@ -15,15 +15,16 @@ require ( go.opentelemetry.io/build-tools/multimod v0.0.0-20220327151007-0b1d24fa04f4 go.opentelemetry.io/build-tools/semconvgen v0.0.0-20220327151007-0b1d24fa04f4 golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5 - golang.org/x/tools v0.1.10 + golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a ) require ( 4d63.com/gochecknoglobals v0.1.0 // indirect - github.com/Antonboom/errname v0.1.5 // indirect - github.com/Antonboom/nilnil v0.1.0 // indirect - github.com/BurntSushi/toml v1.0.0 // indirect + github.com/Antonboom/errname v0.1.6 // indirect + github.com/Antonboom/nilnil v0.1.1 // indirect + github.com/BurntSushi/toml v1.1.0 // indirect github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect + github.com/GaijinEntertainment/go-exhaustruct/v2 v2.1.0 // indirect github.com/Masterminds/semver v1.5.0 // indirect github.com/Microsoft/go-winio v0.4.16 // indirect github.com/OpenPeeDeeP/depguard v1.1.0 // indirect @@ -35,16 +36,16 @@ require ( github.com/ashanbrown/makezero v1.1.1 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bkielbasa/cyclop v1.2.0 // indirect - github.com/blizzy78/varnamelen v0.6.2 // indirect + github.com/blizzy78/varnamelen v0.8.0 // indirect github.com/bmatcuk/doublestar/v4 v4.0.2 // indirect github.com/bombsimon/wsl/v3 v3.3.0 // indirect - github.com/breml/bidichk v0.2.2 // indirect - github.com/breml/errchkjson v0.2.3 // indirect + github.com/breml/bidichk v0.2.3 // indirect + github.com/breml/errchkjson v0.3.0 // indirect github.com/butuzov/ireturn v0.1.1 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/charithe/durationcheck v0.0.9 // indirect - github.com/chavacava/garif v0.0.0-20210405164556-e8a0a408d6af // indirect + github.com/chavacava/garif v0.0.0-20220316182200-5cad0b5181d4 // indirect github.com/daixiang0/gci v0.3.3 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/denis-tingaikin/go-header v0.4.3 // indirect @@ -54,9 +55,10 @@ require ( github.com/ettle/strcase v0.1.1 // indirect github.com/fatih/color v1.13.0 // indirect github.com/fatih/structtag v1.2.0 // indirect - github.com/fsnotify/fsnotify v1.5.1 // indirect - github.com/fzipp/gocyclo v0.4.0 // indirect - github.com/go-critic/go-critic v0.6.2 // indirect + github.com/firefart/nonamedreturns v1.0.1 // indirect + github.com/fsnotify/fsnotify v1.5.4 // indirect + github.com/fzipp/gocyclo v0.5.1 // indirect + github.com/go-critic/go-critic v0.6.3 // indirect github.com/go-git/gcfg v1.5.0 // indirect github.com/go-git/go-billy/v5 v5.3.1 // indirect github.com/go-git/go-git/v5 v5.4.2 // indirect @@ -73,7 +75,7 @@ require ( github.com/golang/protobuf v1.5.2 // indirect github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 // indirect github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect - github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613 // indirect + github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe // indirect github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a // indirect github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 // indirect github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca // indirect @@ -104,13 +106,14 @@ require ( github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect github.com/kisielk/errcheck v1.6.0 // indirect github.com/kisielk/gotool v1.0.0 // indirect - github.com/kulti/thelper v0.5.1 // indirect + github.com/kulti/thelper v0.6.2 // indirect github.com/kunwardeep/paralleltest v1.0.3 // indirect github.com/kyoh86/exportloopref v0.1.8 // indirect - github.com/ldez/gomoddirectives v0.2.2 // indirect + github.com/ldez/gomoddirectives v0.2.3 // indirect github.com/ldez/tagliatelle v0.3.1 // indirect github.com/leonklingele/grouper v1.1.0 // indirect - github.com/magiconair/properties v1.8.5 // indirect + github.com/lufeee/execinquery v1.0.0 // indirect + github.com/magiconair/properties v1.8.6 // indirect github.com/maratori/testpackage v1.0.1 // indirect github.com/matoous/godox v0.0.0-20210227103229-6504466cf951 // indirect github.com/mattn/go-colorable v0.1.12 // indirect @@ -118,7 +121,7 @@ require ( github.com/mattn/go-runewidth v0.0.9 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect github.com/mbilski/exhaustivestruct v1.2.0 // indirect - github.com/mgechev/revive v1.1.4 // indirect + github.com/mgechev/revive v1.2.1 // indirect github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect @@ -126,11 +129,12 @@ require ( github.com/nakabonne/nestif v0.3.1 // indirect github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/nishanths/exhaustive v0.7.11 // indirect - github.com/nishanths/predeclared v0.2.1 // indirect + github.com/nishanths/predeclared v0.2.2 // indirect github.com/olekukonko/tablewriter v0.0.5 // indirect github.com/ory/viper v1.7.5 // indirect github.com/pborman/uuid v1.2.0 // indirect - github.com/pelletier/go-toml v1.9.4 // indirect + github.com/pelletier/go-toml v1.9.5 // indirect + github.com/pelletier/go-toml/v2 v2.0.0 // indirect github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect @@ -139,27 +143,29 @@ require ( github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.34.0 // indirect github.com/prometheus/procfs v0.7.3 // indirect - github.com/quasilyte/go-ruleguard v0.3.15 // indirect - github.com/quasilyte/gogrep v0.0.0-20220103110004-ffaa07af02e3 // indirect + github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a // indirect + github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 // indirect github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 // indirect + github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect github.com/ryancurrah/gomodguard v1.2.3 // indirect github.com/ryanrolds/sqlclosecheck v0.3.0 // indirect github.com/sanposhiho/wastedassign/v2 v2.0.6 // indirect - github.com/securego/gosec/v2 v2.10.0 // indirect + github.com/securego/gosec/v2 v2.11.0 // indirect github.com/sergi/go-diff v1.1.0 // indirect github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect github.com/sirupsen/logrus v1.8.1 // indirect github.com/sivchari/containedctx v1.0.2 // indirect - github.com/sivchari/tenv v1.4.7 // indirect + github.com/sivchari/tenv v1.5.0 // indirect github.com/sonatard/noctx v0.0.1 // indirect github.com/sourcegraph/go-diff v0.6.1 // indirect - github.com/spf13/afero v1.6.0 // indirect + github.com/spf13/afero v1.8.2 // indirect github.com/spf13/cast v1.4.1 // indirect github.com/spf13/cobra v1.4.0 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spf13/viper v1.10.1 // indirect + github.com/spf13/viper v1.11.0 // indirect github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect + github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect github.com/stretchr/objx v0.1.1 // indirect github.com/stretchr/testify v1.7.1 // indirect github.com/subosito/gotenv v1.2.0 // indirect @@ -169,32 +175,33 @@ require ( github.com/tdakkota/asciicheck v0.1.1 // indirect github.com/tetafro/godot v1.4.11 // indirect github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 // indirect - github.com/tomarrell/wrapcheck/v2 v2.5.0 // indirect + github.com/tomarrell/wrapcheck/v2 v2.6.1 // indirect github.com/tommy-muehle/go-mnd/v2 v2.5.0 // indirect github.com/ultraware/funlen v0.0.3 // indirect github.com/ultraware/whitespace v0.0.5 // indirect github.com/uudashr/gocognit v1.0.5 // indirect github.com/xanzy/ssh-agent v0.3.0 // indirect github.com/yagipy/maintidx v1.0.0 // indirect - github.com/yeya24/promlinter v0.1.1-0.20210918184747-d757024714a1 // indirect + github.com/yeya24/promlinter v0.2.0 // indirect gitlab.com/bosi/decorder v0.2.1 // indirect go.opentelemetry.io/build-tools v0.0.0-20220321164008-b8e03aff061a // indirect - golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect + golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect + golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e // indirect golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect - golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect - golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect + golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect + golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect - golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 // indirect + golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 // indirect golang.org/x/text v0.3.7 // indirect - golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect + golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.28.0 // indirect - gopkg.in/ini.v1 v1.66.2 // indirect + gopkg.in/ini.v1 v1.66.4 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect - honnef.co/go/tools v0.2.2 // indirect - mvdan.cc/gofumpt v0.3.0 // indirect + honnef.co/go/tools v0.3.1 // indirect + mvdan.cc/gofumpt v0.3.1 // indirect mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect mvdan.cc/unparam v0.0.0-20211214103731-d0ef000c54e5 // indirect diff --git a/internal/tools/go.sum b/internal/tools/go.sum index 1b5a73f82ed..9f126356002 100644 --- a/internal/tools/go.sum +++ b/internal/tools/go.sum @@ -6,6 +6,7 @@ cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= @@ -19,6 +20,7 @@ cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOY cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= @@ -30,15 +32,18 @@ cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+Y cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.6.0/go.mod h1:afJwI0vaXwAG54kI7A//lP/lSPDkQORQuMkv56TxEPU= cloud.google.com/go/firestore v1.6.1/go.mod h1:asNXNOzBdyVQmEU+ggO8UPodTkEVFW5Qx+rwHnAz+EY= cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= @@ -51,19 +56,22 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= contrib.go.opencensus.io/exporter/stackdriver v0.13.4/go.mod h1:aXENhDJ1Y4lIg4EUaVTwzvYETVNZk10Pu26tevFKLUc= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Antonboom/errname v0.1.5 h1:IM+A/gz0pDhKmlt5KSNTVAvfLMb+65RxavBXpRtCUEg= -github.com/Antonboom/errname v0.1.5/go.mod h1:DugbBstvPFQbv/5uLcRRzfrNqKE9tVdVCqWCLp6Cifo= -github.com/Antonboom/nilnil v0.1.0 h1:DLDavmg0a6G/F4Lt9t7Enrbgb3Oph6LnDE6YVsmTt74= -github.com/Antonboom/nilnil v0.1.0/go.mod h1:PhHLvRPSghY5Y7mX4TW+BHZQYo1A8flE5H20D3IPZBo= +github.com/Antonboom/errname v0.1.6 h1:LzIJZlyLOCSu51o3/t2n9Ck7PcoP9wdbrdaW6J8fX24= +github.com/Antonboom/errname v0.1.6/go.mod h1:7lz79JAnuoMNDAWE9MeeIr1/c/VpSUWatBv2FH9NYpI= +github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= +github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.0.0 h1:dtDWrepsVPfW9H/4y7dDgFc2MBUSeJhlaDtK13CxFlU= -github.com/BurntSushi/toml v1.0.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= +github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.1.0 h1:LAPPhJ4KR5Z8aKVZF5S48csJkxL5RMKmE/98fMs1u5M= +github.com/GaijinEntertainment/go-exhaustruct/v2 v2.1.0/go.mod h1:LGOGuvEgCfCQsy3JF2tRmpGDpzA53iZfyGEWSPwQ6/4= github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -117,16 +125,16 @@ github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6r github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bkielbasa/cyclop v1.2.0 h1:7Jmnh0yL2DjKfw28p86YTd/B4lRGcNuu12sKE35sM7A= github.com/bkielbasa/cyclop v1.2.0/go.mod h1:qOI0yy6A7dYC4Zgsa72Ppm9kONl0RoIlPbzot9mhmeI= -github.com/blizzy78/varnamelen v0.6.2 h1:Z857yhnsqKadJo+ALsdpRpN5SCyTTR5rEX+hwVGY4Vk= -github.com/blizzy78/varnamelen v0.6.2/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= +github.com/blizzy78/varnamelen v0.8.0 h1:oqSblyuQvFsW1hbBHh1zfwrKe3kcSj0rnXkKzsQ089M= +github.com/blizzy78/varnamelen v0.8.0/go.mod h1:V9TzQZ4fLJ1DSrjVDfl89H7aMnTvKkApdHeyESmyR7k= github.com/bmatcuk/doublestar/v4 v4.0.2 h1:X0krlUVAVmtr2cRoTqR8aDMrDqnB36ht8wpWTiQ3jsA= github.com/bmatcuk/doublestar/v4 v4.0.2/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bombsimon/wsl/v3 v3.3.0 h1:Mka/+kRLoQJq7g2rggtgQsjuI/K5Efd87WX96EWFxjM= github.com/bombsimon/wsl/v3 v3.3.0/go.mod h1:st10JtZYLE4D5sC7b8xV4zTKZwAQjCH/Hy2Pm1FNZIc= -github.com/breml/bidichk v0.2.2 h1:w7QXnpH0eCBJm55zGCTJveZEkQBt6Fs5zThIdA6qQ9Y= -github.com/breml/bidichk v0.2.2/go.mod h1:zbfeitpevDUGI7V91Uzzuwrn4Vls8MoBMrwtt78jmso= -github.com/breml/errchkjson v0.2.3 h1:97eGTmR/w0paL2SwfRPI1jaAZHaH/fXnxWTw2eEIqE0= -github.com/breml/errchkjson v0.2.3/go.mod h1:jZEATw/jF69cL1iy7//Yih8yp/mXp2CBoBr9GJwCAsY= +github.com/breml/bidichk v0.2.3 h1:qe6ggxpTfA8E75hdjWPZ581sY3a2lnl0IRxLQFelECI= +github.com/breml/bidichk v0.2.3/go.mod h1:8u2C6DnAy0g2cEq+k/A2+tr9O1s+vHGxWn0LTc70T2A= +github.com/breml/errchkjson v0.3.0 h1:YdDqhfqMT+I1vIxPSas44P+9Z9HzJwCeAzjB8PxP1xw= +github.com/breml/errchkjson v0.3.0/go.mod h1:9Cogkyv9gcT8HREpzi3TiqBxCqDzo8awa92zSDFcofU= github.com/butuzov/ireturn v0.1.1 h1:QvrO2QF2+/Cx1WA/vETCIYBKtRjc30vesdoPUNo1EbY= github.com/butuzov/ireturn v0.1.1/go.mod h1:Wh6Zl3IMtTpaIKbmwzqi6olnM9ptYQxxVacMsOEFPoc= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -138,8 +146,8 @@ github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cb github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/charithe/durationcheck v0.0.9 h1:mPP4ucLrf/rKZiIG/a9IPXHGlh8p4CzgpyTy6EEutYk= github.com/charithe/durationcheck v0.0.9/go.mod h1:SSbRIBVfMjCi/kEB6K65XEA83D6prSM8ap1UCpNKtgg= -github.com/chavacava/garif v0.0.0-20210405164556-e8a0a408d6af h1:spmv8nSH9h5oCQf40jt/ufBCt9j0/58u4G+rkeMqXGI= -github.com/chavacava/garif v0.0.0-20210405164556-e8a0a408d6af/go.mod h1:Qjyv4H3//PWVzTeCezG2b9IRn6myJxJSr4TD/xo6ojU= +github.com/chavacava/garif v0.0.0-20220316182200-5cad0b5181d4 h1:tFXjAxje9thrTF4h57Ckik+scJjTWdwAtZqZPtOT48M= +github.com/chavacava/garif v0.0.0-20220316182200-5cad0b5181d4/go.mod h1:W8EnPSQ8Nv4fUjc/v1/8tHFqhuOJXnRub0dTfuAQktU= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= @@ -217,21 +225,23 @@ github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= +github.com/firefart/nonamedreturns v1.0.1 h1:fSvcq6ZpK/uBAgJEGMvzErlzyM4NELLqqdTofVjVNag= +github.com/firefart/nonamedreturns v1.0.1/go.mod h1:D3dpIBojGGNh5UfElmwPu73SwDCm+VKhHYqwlNOk2uQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.2 h1:SPb1KFFmM+ybpEjPUhCCkZOM5xlovT5UbrMvWnXyBns= -github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= +github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= github.com/fullstorydev/grpcurl v1.6.0/go.mod h1:ZQ+ayqbKMJNhzLmbpCiurTVlaK2M/3nqZCxaQ2Ze/sM= -github.com/fzipp/gocyclo v0.4.0 h1:IykTnjwh2YLyYkGa0y92iTTEQcnyAz0r9zOo15EbJ7k= -github.com/fzipp/gocyclo v0.4.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= +github.com/fzipp/gocyclo v0.5.1 h1:L66amyuYogbxl0j2U+vGqJXusPF2IkduvXLnYD5TFgw= +github.com/fzipp/gocyclo v0.5.1/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0= github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0= -github.com/go-critic/go-critic v0.6.2 h1:L5SDut1N4ZfsWZY0sH4DCrsHLHnhuuWak2wa165t9gs= -github.com/go-critic/go-critic v0.6.2/go.mod h1:td1s27kfmLpe5G/DPjlnFI7o1UCzePptwU7Az0V5iCM= +github.com/go-critic/go-critic v0.6.3 h1:abibh5XYBTASawfTQ0rA7dVtQT+6KzpGqb/J+DxRDaw= +github.com/go-critic/go-critic v0.6.3/go.mod h1:c6b3ZP1MQ7o6lPR7Rv3lEf7pYQUmAcx8ABHgdZCQt/k= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.0/go.mod h1:5m20vg6GwYabIxaOonVkTdrILxQMpEShl1xiMF4ua+E= github.com/go-git/go-billy/v5 v5.2.0/go.mod h1:pmpqyWchKfYfrkb/UVH4otLvyi/5gJlGI4Hb3ZqZ3W0= @@ -326,12 +336,12 @@ github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2 h1:23T5iq8rbUYlhpt5 github.com/golangci/check v0.0.0-20180506172741-cfe4005ccda2/go.mod h1:k9Qvh+8juN+UKMCS/3jFtGICgW8O96FVaZsaxdzDkR4= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a h1:w8hkcTqaFpzKqonE9uMCefW1WDie15eSP/4MssdenaM= github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a/go.mod h1:ryS0uhF+x9jgbj/N71xsEqODy9BN81/GonCZiOzirOk= -github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613 h1:9kfjN3AdxcbsZBf8NjltjWihK2QfBBBZuv91cMFfDHw= -github.com/golangci/go-misc v0.0.0-20180628070357-927a3d87b613/go.mod h1:SyvUF2NxV+sN8upjjeVYr5W7tyxaT1JVtvhKhOn2ii8= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6J5HIP8ZtyMdiDscjMLfRBSPuzVVeo= +github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a h1:iR3fYXUjHCR97qWS8ch1y9zPNsgXThGwjKPrYfqMPks= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= -github.com/golangci/golangci-lint v1.45.2 h1:9I3PzkvscJkFAQpTQi5Ga0V4qWdJERajX1UZ7QqkW+I= -github.com/golangci/golangci-lint v1.45.2/go.mod h1:f20dpzMmUTRp+oYnX0OGjV1Au3Jm2JeI9yLqHq1/xsI= +github.com/golangci/golangci-lint v1.46.0 h1:uz9AtEcIP63FH+FIyuAXcQGVQO4vCUavEsMTJpPeD4s= +github.com/golangci/golangci-lint v1.46.0/go.mod h1:IJpcNOUfx/XLRwE95FHQ6QtbhYwwqcm0H5QkwUfF4ZE= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= @@ -381,6 +391,7 @@ github.com/google/pprof v0.0.0-20200507031123-427632fa3b1c/go.mod h1:ZgVRPoUq/hf github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= @@ -399,6 +410,9 @@ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+ github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/gookit/color v1.5.0/go.mod h1:43aQb+Zerm/BWh2GnrgOQm7ffz7tvQXEKV6BFMl7wAo= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= github.com/gordonklaus/ineffassign v0.0.0-20200309095847-7953dde2c7bf/go.mod h1:cuNKsD1zp2v6XfE/orVX2QE1LC+i254ceGcVeDT3pTU= @@ -412,7 +426,6 @@ github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= -github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= @@ -434,7 +447,6 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.10.1/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= @@ -444,6 +456,7 @@ github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtng github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.0.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= +github.com/hashicorp/go-hclog v1.2.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= @@ -467,12 +480,10 @@ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uG github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= +github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= @@ -539,20 +550,19 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/kulti/thelper v0.5.1 h1:Uf4CUekH0OvzQTFPrWkstJvXgm6pnNEtQu3HiqEkpB0= -github.com/kulti/thelper v0.5.1/go.mod h1:vMu2Cizjy/grP+jmsvOFDx1kYP6+PD1lqg4Yu5exl2U= +github.com/kulti/thelper v0.6.2 h1:K4xulKkwOCnT1CDms6Ex3uG1dvSMUUQe9zxgYQgbRXs= +github.com/kulti/thelper v0.6.2/go.mod h1:DsqKShOvP40epevkFrvIwkCMNYxMeTNjdWL4dqWHZ6I= github.com/kunwardeep/paralleltest v1.0.3 h1:UdKIkImEAXjR1chUWLn+PNXqWUGs//7tzMeWuP7NhmI= github.com/kunwardeep/paralleltest v1.0.3/go.mod h1:vLydzomDFpk7yu5UX02RmP0H8QfRPOV/oFhWN85Mjb4= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/kyoh86/exportloopref v0.1.8 h1:5Ry/at+eFdkX9Vsdw3qU4YkvGtzuVfzT4X7S77LoN/M= github.com/kyoh86/exportloopref v0.1.8/go.mod h1:1tUcJeiioIs7VWe5gcOObrux3lb66+sBqGZrRkMwPgg= -github.com/ldez/gomoddirectives v0.2.2 h1:p9/sXuNFArS2RLc+UpYZSI4KQwGMEDWC/LbtF5OPFVg= -github.com/ldez/gomoddirectives v0.2.2/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= +github.com/ldez/gomoddirectives v0.2.3 h1:y7MBaisZVDYmKvt9/l1mjNCiSA1BVn34U0ObUcJwlhA= +github.com/ldez/gomoddirectives v0.2.3/go.mod h1:cpgBogWITnCfRq2qGoDkKMEVSaarhdBr6g8G04uz6d0= github.com/ldez/tagliatelle v0.3.1 h1:3BqVVlReVUZwafJUwQ+oxbx2BEX2vUG4Yu/NOfMiKiM= github.com/ldez/tagliatelle v0.3.1/go.mod h1:8s6WJQwEYHbKZDsp/LjArytKOG8qaMrKQQ3mFukHs88= github.com/leonklingele/grouper v1.1.0 h1:tC2y/ygPbMFSBOs3DcyaEMKnnwH7eYKzohOtRrf0SAg= @@ -562,12 +572,14 @@ github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= +github.com/lufeee/execinquery v1.0.0 h1:1XUTuLIVPDlFvUU3LXmmZwHDsolsxXnY67lzhpeqe0I= +github.com/lufeee/execinquery v1.0.0/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= +github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= +github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= github.com/maratori/testpackage v1.0.1 h1:QtJ5ZjqapShm0w5DosRjg0PRlSdAdlx+W6cCKoALdbQ= github.com/maratori/testpackage v1.0.1/go.mod h1:ddKdw+XG0Phzhx8BFDTKgpWP4i7MpApTE5fXSKAqwDU= github.com/matoous/godox v0.0.0-20210227103229-6504466cf951 h1:pWxk9e//NbPwfxat7RXkts09K+dEBJWakUWwICVqYbA= @@ -602,9 +614,8 @@ github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5 github.com/mbilski/exhaustivestruct v1.2.0 h1:wCBmUnSYufAHO6J4AVWY6ff+oxWxsVFrwgOdMUQePUo= github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aksxSUOUy+nvtVEfzXc= github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= -github.com/mgechev/revive v1.1.4 h1:sZOjY6GU35Kr9jKa/wsKSHgrFz8eASIB5i3tqWZMp0A= -github.com/mgechev/revive v1.1.4/go.mod h1:ZZq2bmyssGh8MSPz3VVziqRNIMYTJXzP8MUKG90vZ9A= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/mgechev/revive v1.2.1 h1:GjFml7ZsoR0IrQ2E2YIvWFNS5GPDV7xNwvA5GM1HZC4= +github.com/mgechev/revive v1.2.1/go.mod h1:+Ro3wqY4vakcYNtkBWdZC7dBg1xSB6sp054wWwmeFm0= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= @@ -620,7 +631,6 @@ github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eI github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= @@ -648,8 +658,8 @@ github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLA github.com/nishanths/exhaustive v0.7.11 h1:xV/WU3Vdwh5BUH4N06JNUznb6d5zhRPOnlgCrpNYNKA= github.com/nishanths/exhaustive v0.7.11/go.mod h1:gX+MP7DWMKJmNa1HfMozK+u04hQd3na9i0hyqf3/dOI= github.com/nishanths/predeclared v0.0.0-20190419143655-18a43bb90ffc/go.mod h1:62PewwiQTlm/7Rj+cxVYqZvDIUc+JjZq6GHAC1fsObQ= -github.com/nishanths/predeclared v0.2.1 h1:1TXtjmy4f3YCFjTxRd8zcFHOmoUir+gp0ESzjFzG2sw= -github.com/nishanths/predeclared v0.2.1/go.mod h1:HvkGJcA3naj4lOwnFXFDkFxVtSqQMB9sbB1usJ+xjQE= +github.com/nishanths/predeclared v0.2.2 h1:V2EPdZPliZymNAn79T8RkNApBjMmVKh5XRpLm/w98Vk= +github.com/nishanths/predeclared v0.2.2/go.mod h1:RROzoN6TnGQupbC+lqggsOlcgysk3LMK/HI84Mp280c= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= @@ -691,8 +701,12 @@ github.com/pborman/uuid v1.2.0 h1:J7Q5mO4ysT1dv8hyrUGHb9+ooztCXu1D8MY8DZYsu3g= github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.0/go.mod h1:D6yutnOGMveHEPV7VQOuvI/gXY61bv+9bAOTRnLElKs= -github.com/pelletier/go-toml v1.9.4 h1:tjENF6MfZAg8e4ZmZTeWaWiT2vXtsoO6+iuOjFhECwM= github.com/pelletier/go-toml v1.9.4/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= +github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.0.0-beta.8/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= +github.com/pelletier/go-toml/v2 v2.0.0 h1:P7Bq0SaI8nsexyay5UAyDo+ICWy5MQPgEZ5+l8JQTKo= +github.com/pelletier/go-toml/v2 v2.0.0/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d h1:CdDQnGF8Nq9ocOS/xlSptM1N3BbrA6/kmaep5ggwaIA= github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d/go.mod h1:3OzsM7FXDQlpCiw2j81fOmAwQLnZnLGXVKUzeKQXIAw= @@ -702,6 +716,7 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= +github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -743,21 +758,21 @@ github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40T github.com/pseudomuto/protoc-gen-doc v1.3.2/go.mod h1:y5+P6n3iGrbKG+9O04V5ld71in3v/bX88wUwgt+U8EA= github.com/pseudomuto/protokit v0.2.0/go.mod h1:2PdH30hxVHsup8KpBTOXTBeMVhJZVio3Q8ViKSAXT0Q= github.com/quasilyte/go-ruleguard v0.3.1-0.20210203134552-1b5a410e1cc8/go.mod h1:KsAh3x0e7Fkpgs+Q9pNLS5XpFSvYCEVl5gP9Pp1xp30= -github.com/quasilyte/go-ruleguard v0.3.15 h1:iWYzp1z72IlXTioET0+XI6SjQdPfMGfuAiZiKznOt7g= -github.com/quasilyte/go-ruleguard v0.3.15/go.mod h1:NhuWhnlVEM1gT1A4VJHYfy9MuYSxxwHgxWoPsn9llB4= +github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a h1:sWFavxtIctGrVs5SYZ5Ml1CvrDAs8Kf5kx2PI3C41dA= +github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a/go.mod h1:VMX+OnnSw4LicdiEGtRSD/1X8kW7GuEscjYNr4cOIT4= github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.12-0.20220101150716-969a394a9451/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.12/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/dsl v0.3.16/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= -github.com/quasilyte/gogrep v0.0.0-20220103110004-ffaa07af02e3 h1:P4QPNn+TK49zJjXKERt/vyPbv/mCHB/zQ4flDYOMN+M= -github.com/quasilyte/gogrep v0.0.0-20220103110004-ffaa07af02e3/go.mod h1:wSEyW6O61xRV6zb6My3HxrQ5/8ke7NE2OayqCHa3xRM= +github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 h1:PDWGei+Rf2bBiuZIbZmM20J2ftEy9IeUCHA8HbQqed8= +github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5/go.mod h1:wSEyW6O61xRV6zb6My3HxrQ5/8ke7NE2OayqCHa3xRM= github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf68pVdQ3bCFZMDmnt9yqcMBro1pC7F+IPYMY= github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= +github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= @@ -769,13 +784,13 @@ github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoL github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sagikazarmark/crypt v0.1.0/go.mod h1:B/mN0msZuINBtQ1zZLEQcegFJJf9vnYIR88KRMEuODE= github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= +github.com/sagikazarmark/crypt v0.5.0/go.mod h1:l+nzl7KWh51rpzp2h7t4MZWyiEWdhNpOAnclKvg+mdA= github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= github.com/sanposhiho/wastedassign/v2 v2.0.6/go.mod h1:KyZ0MWTwxxBmfwn33zh3k1dmsbF2ud9pAAGfoLfjhtI= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/securego/gosec/v2 v2.10.0 h1:l6BET4EzWtyUXCpY2v7N92v0DDCas0L7ngg3bpqbr8g= -github.com/securego/gosec/v2 v2.10.0/go.mod h1:PVq8Ewh/nCN8l/kKC6zrGXSr7m2NmEK6ITIAWMtIaA0= +github.com/securego/gosec/v2 v2.11.0 h1:+PDkpzR41OI2jrw1q6AdXZCbsNGNGT7pQjal0H0cArI= +github.com/securego/gosec/v2 v2.11.0/go.mod h1:SX8bptShuG8reGC0XS09+a4H2BoWSJi+fscA+Pulbpo= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= @@ -792,8 +807,8 @@ github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sivchari/containedctx v1.0.2 h1:0hLQKpgC53OVF1VT7CeoFHk9YKstur1XOgfYIc1yrHI= github.com/sivchari/containedctx v1.0.2/go.mod h1:PwZOeqm4/DLoJOqMSIJs3aKqXRX4YO+uXww087KZ7Bw= -github.com/sivchari/tenv v1.4.7 h1:FdTpgRlTue5eb5nXIYgS/lyVXSjugU8UUVDwhP1NLU8= -github.com/sivchari/tenv v1.4.7/go.mod h1:5nF+bITvkebQVanjU6IuMbvIot/7ReNsUV7I5NbprB0= +github.com/sivchari/tenv v1.5.0 h1:wxW0mFpKI6DIb3s6m1jCDYvkWXCskrimXMuGd0K/kSQ= +github.com/sivchari/tenv v1.5.0/go.mod h1:64yStXKSOxDfX47NlhVwND4dHwfZDdbp2Lyl018Icvg= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= @@ -806,8 +821,9 @@ github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasO github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= github.com/spf13/afero v1.3.3/go.mod h1:5KUK8ByomD5Ti5Artl0RtHeI5pTF7MIDuXL3yY520V4= -github.com/spf13/afero v1.6.0 h1:xoax2sJ2DT8S8xA2paPFjDCScCNeWsg75VG0DLRreiY= github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= +github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo= +github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= @@ -826,11 +842,13 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.9.0/go.mod h1:+i6ajR7OX2XaiBkrcZJFK21htRk7eDeLg7+O6bhUPP4= -github.com/spf13/viper v1.10.1 h1:nuJZuYpG7gTj/XqiUwg8bA0cp1+M2mC3J4g5luUYBKk= github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= +github.com/spf13/viper v1.11.0 h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44= +github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUsX7Zk= github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0= github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I= +github.com/stbenjam/no-sprintf-host-port v0.1.1 h1:tYugd/yrm1O0dV+ThCbaKZh195Dfm07ysF0U6JQXczc= +github.com/stbenjam/no-sprintf-host-port v0.1.1/go.mod h1:TLhvtIvONRzdmkFiio4O8LHsN9N74I+PhRquPsxpL0I= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= @@ -867,8 +885,8 @@ github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiff github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tomarrell/wrapcheck/v2 v2.5.0 h1:g27SGGHNoQdvHz4KZA9o4v09RcWzylR+b1yueE5ECiw= -github.com/tomarrell/wrapcheck/v2 v2.5.0/go.mod h1:68bQ/eJg55BROaRTbMjC7vuhL2OgfoG8bLp9ZyoBfyY= +github.com/tomarrell/wrapcheck/v2 v2.6.1 h1:Cf4a/iwuMp9s7kKrh74GTgijRVim0wEpKjgAsT7Wctw= +github.com/tomarrell/wrapcheck/v2 v2.6.1/go.mod h1:Eo+Opt6pyMW1b6cNllOcDSSoHO0aTJ+iF6BfCUbHltA= github.com/tomasen/realip v0.0.0-20180522021738-f0c99a92ddce/go.mod h1:o8v6yHRoik09Xen7gje4m9ERNah1d1PPsVq1VEx9vE4= github.com/tommy-muehle/go-mnd/v2 v2.5.0 h1:iAj0a8e6+dXSL7Liq0aXPox36FiN1dBbjA6lt9fl65s= github.com/tommy-muehle/go-mnd/v2 v2.5.0/go.mod h1:WsUAkMJMYww6l/ufffCD3m+P7LEvr8TnZn9lwVDlgzw= @@ -893,8 +911,8 @@ github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1z github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yagipy/maintidx v1.0.0 h1:h5NvIsCz+nRDapQ0exNv4aJ0yXSI0420omVANTv3GJM= github.com/yagipy/maintidx v1.0.0/go.mod h1:0qNf/I/CCZXSMhsRsrEPDZ+DkekpKLXAJfsTACwgXLk= -github.com/yeya24/promlinter v0.1.1-0.20210918184747-d757024714a1 h1:YAaOqqMTstELMMGblt6yJ/fcOt4owSYuw3IttMnKfAM= -github.com/yeya24/promlinter v0.1.1-0.20210918184747-d757024714a1/go.mod h1:rs5vtZzeBHqqMwXqFScncpCF6u06lezhZepno9AB1Oc= +github.com/yeya24/promlinter v0.2.0 h1:xFKDQ82orCU5jQujdaD8stOHiv8UN68BSdn2a8u8Y3o= +github.com/yeya24/promlinter v0.2.0/go.mod h1:u54lkmBOZrpEbQQ6gox2zWKKLKu2SGe+2KOiextY+IA= github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= @@ -911,12 +929,12 @@ go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.4/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= go.etcd.io/etcd v0.0.0-20200513171258-e048e166ab9c/go.mod h1:xCI7ZzBfRuGgBXyXO6yfWfDmlWd35khcWpUa4L0xI/k= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= +go.etcd.io/etcd/api/v3 v3.5.2/go.mod h1:5GB2vv4A4AOn3yk7MftYGHkUfGtDHnEraIjym4dYz5A= go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= +go.etcd.io/etcd/client/pkg/v3 v3.5.2/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs= +go.etcd.io/etcd/client/v2 v2.305.2/go.mod h1:2D7ZejHVMIfog1221iLSYlQRzrtECw3kz4I4VAQm3qI= go.mozilla.org/mozlog v0.0.0-20170222151521-4bb13139d403/go.mod h1:jHoPAGnDrCy6kaI2tAze5Prf0Nr0w/oNkROt2lw3n3o= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= @@ -948,7 +966,6 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -964,8 +981,10 @@ golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE= -golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220313003712-b769efc7c000/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA= +golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -978,6 +997,8 @@ golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EH golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5 h1:FR+oGxGfbQu1d+jglI3rCkjAjUnhRSZcUxr+DqlDLNo= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e h1:qyrTQ++p1afMkO4DPEeLGq/3oTsdlvdH4vqZUBWzUKM= +golang.org/x/exp/typeparams v0.0.0-20220218215828-6cf2b201936e/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1010,7 +1031,6 @@ golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1048,6 +1068,7 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= @@ -1063,8 +1084,10 @@ golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f h1:oA4XRj0qtSt8Yo1Zms0CUlsT3KG69V2UGQWPBxujDmc= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5 h1:bRb386wvrE+oBNdF1d/Xh9mQrfQ4ecYhW5qJ5GvTGT4= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1082,8 +1105,10 @@ golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b h1:clP8eMhB30EHdc0bd2Twtq6kgU7yl5ub2cQLSdrv1Dg= golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 h1:OSnWWcOd/CtWQC2cYSBgbTSJv3ciqd8r54ySIW2y3RE= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= 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= @@ -1101,7 +1126,6 @@ golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1155,6 +1179,7 @@ golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1163,6 +1188,7 @@ golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1185,9 +1211,14 @@ golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 h1:OH54vjqzRWmbJ62fjuhxy7AxFFgoHN0/DPc/UrL8cAs= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 h1:xHms4gcpe1YE7A3yIllJXP16CMAGuqwO2lX1mTyyRRc= +golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= @@ -1285,13 +1316,13 @@ golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4X golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201114224030-61ea331ec02b/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201230224404-63754364767c/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.1-0.20210205202024-ef80cdb6ec6d/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= golang.org/x/tools v0.1.1-0.20210302220138-2ac05c832e1a/go.mod h1:9bzcO0MWcOuT0tm1iBGzDVPshzfwoVvREIui8C+MHqU= @@ -1304,13 +1335,15 @@ golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo= golang.org/x/tools v0.1.8/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.9-0.20211228192929-ee1ca4ffc4da/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= -golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a h1:ofrrl6c6NG5/IOSx/R1cyiQxxjqlur0h/TvbUhkH0II= +golang.org/x/tools v0.1.11-0.20220316014157-77aa08bb151a/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= 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= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f h1:GGU+dLjvlC3qDwqYgL6UgRmHXhOOgns0bZu2Ty5mm6U= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= @@ -1344,6 +1377,10 @@ google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdr google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= 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/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -1394,7 +1431,9 @@ google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= @@ -1420,6 +1459,15 @@ google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/grpc v1.8.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= @@ -1452,6 +1500,8 @@ google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= 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= @@ -1482,9 +1532,9 @@ gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMy gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.57.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.63.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI= gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/ini.v1 v1.66.4 h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4= +gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= @@ -1510,10 +1560,10 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.2.2 h1:MNh1AVMyVX23VUHE2O27jm6lNj3vjO5DexS4A1xvnzk= -honnef.co/go/tools v0.2.2/go.mod h1:lPVVZ2BS5TfnjLyizF7o7hv7j9/L+8cZY2hLyjP9cGY= -mvdan.cc/gofumpt v0.3.0 h1:kTojdZo9AcEYbQYhGuLf/zszYthRdhDNDUi2JKTxas4= -mvdan.cc/gofumpt v0.3.0/go.mod h1:0+VyGZWleeIj5oostkOex+nDBA0eyavuDnDusAJ8ylo= +honnef.co/go/tools v0.3.1 h1:1kJlrWJLkaGXgcaeosRXViwviqjI7nkBvU2+sZW0AYc= +honnef.co/go/tools v0.3.1/go.mod h1:vlRD9XErLMGT+mDuofSr0mMMquscM/1nQqtRSsh6m70= +mvdan.cc/gofumpt v0.3.1 h1:avhhrOmv0IuvQVK7fvwV91oFSGAk5/6Po8GXTzICeu8= +mvdan.cc/gofumpt v0.3.1/go.mod h1:w3ymliuxvzVx8DAutBnVyDqYb1Niy/yCJt/lk821YCE= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed h1:WX1yoOaKQfddO/mLzdV4wptyWgoH/6hwLs7QHTixo0I= mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed/go.mod h1:Xkxe497xwlCKkIaQYRfC7CSLworTXY9RMqwhhCm+8Nc= mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b h1:DxJ5nJdkhDlLok9K6qO+5290kphDJbHOQO1DFFFTeBo= From 7f66c9c1311d79abdef9c031f382f119336f0afb Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 11 May 2022 12:10:08 -0700 Subject: [PATCH 21/67] setup-go github action does all the env setup (#5336) Signed-off-by: Bogdan Drutu --- .github/workflows/build-and-test-windows.yaml | 5 ---- .github/workflows/build-and-test.yml | 28 +++---------------- .../workflows/builder-integration-test.yaml | 21 ++++++-------- .github/workflows/builder-release.yaml | 11 +++----- .github/workflows/contrib-tests.yml | 8 +++--- 5 files changed, 21 insertions(+), 52 deletions(-) diff --git a/.github/workflows/build-and-test-windows.yaml b/.github/workflows/build-and-test-windows.yaml index 04d2b514451..533d2ed0bfe 100644 --- a/.github/workflows/build-and-test-windows.yaml +++ b/.github/workflows/build-and-test-windows.yaml @@ -16,11 +16,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.17 - - name: Setup Go Environment - run: | - echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - shell: bash - name: Cache Go uses: actions/cache@v3 env: diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index f7e119ec312..44c26bc2a57 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -16,10 +16,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.17 - - name: Setup Go Environment - run: | - echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -34,6 +30,7 @@ jobs: - name: Install Tools if: steps.go-cache.outputs.cache-hit != 'true' run: make install-tools + lint: runs-on: ubuntu-latest needs: [setup-environment] @@ -44,10 +41,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.17 - - name: Setup Go Environment - run: | - echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -71,10 +64,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.17 - - name: Setup Go Environment - run: | - echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -111,6 +100,7 @@ jobs: git diff -s --exit-code || (echo 'Generated code is out of date, please run "make genotelcorecol" and commit the changes in this PR.' && exit 1) - name: Multimod verify run: make multimod-verify + unittest: strategy: matrix: @@ -124,10 +114,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} - - name: Setup Go Environment - run: | - echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -143,6 +129,7 @@ jobs: key: unittest-${{ runner.os }}-go-build-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} - name: Run Unit Tests run: make gotest + test-coverage: runs-on: ubuntu-latest needs: [setup-environment] @@ -153,10 +140,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.17 - - name: Setup Go Environment - run: | - echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -178,6 +161,7 @@ jobs: file: ./coverage.txt fail_ci_if_error: true verbose: true + cross-build-collector: needs: [setup-environment] runs-on: ubuntu-latest @@ -212,10 +196,6 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.17 - - name: Setup Go Environment - run: | - echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - echo "$(go env GOPATH)/bin" >> $GITHUB_PATH - name: Cache Go id: go-cache uses: actions/cache@v3 diff --git a/.github/workflows/builder-integration-test.yaml b/.github/workflows/builder-integration-test.yaml index 0d24e2c00c6..6d80c721732 100644 --- a/.github/workflows/builder-integration-test.yaml +++ b/.github/workflows/builder-integration-test.yaml @@ -23,16 +23,13 @@ on: jobs: integration-test: name: Integration test - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - - name: Set up Go - uses: actions/setup-go@v3 - with: - go-version: 1.17 - - - name: Check out code into the Go module directory - uses: actions/checkout@v3 - - - name: Test - run: cd ./cmd/builder && ./test/test.sh + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: 1.17 + - name: Test + run: cd ./cmd/builder && ./test/test.sh diff --git a/.github/workflows/builder-release.yaml b/.github/workflows/builder-release.yaml index 73bd01a79e5..b1ddb44a606 100644 --- a/.github/workflows/builder-release.yaml +++ b/.github/workflows/builder-release.yaml @@ -7,20 +7,17 @@ on: jobs: goreleaser: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout Repo uses: actions/checkout@v3 with: fetch-depth: 0 - - - name: Set up Go + - name: Setup Go uses: actions/setup-go@v3 with: go-version: 1.17 - - - name: Run GoReleaser + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: distribution: goreleaser-pro diff --git a/.github/workflows/contrib-tests.yml b/.github/workflows/contrib-tests.yml index e4593b72dbf..83e87ff0a8b 100644 --- a/.github/workflows/contrib-tests.yml +++ b/.github/workflows/contrib-tests.yml @@ -9,13 +9,13 @@ on: jobs: contrib_tests: runs-on: ubuntu-latest - container: - image: cimg/go:1.17 steps: - - name: Setup Permissions - run: sudo chmod -R 777 $GITHUB_WORKSPACE /github /__w/_temp - name: Checkout Repo uses: actions/checkout@v3 + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: 1.17 - name: Run Contrib Tests run: | contrib_path=/tmp/opentelemetry-collector-contrib From 6cde8020f296a3b41478352a936e6fccebaf4eb6 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Wed, 11 May 2022 13:01:51 -0700 Subject: [PATCH 22/67] [pdata] Rename methods dealing with slices of primitive type items (#5344) * [pdata] Rename methods dealing with slices of primitive type items - In preparation of migration to immutable slices for primitive type items the following methods are renamed: - `Value.BytesVal` func is deprecated in favor of `Value.MBytesVal`. - `Value.SetBytesVal` func is deprecated in favor of `Value.SetMBytesVal`. - `Value.UpdateBytes` func is deprecated in favor of `Value.UpdateMBytes`. - `Value.InsertBytes` func is deprecated in favor of `Value.InsertMBytes`. - `Value.UpsertBytes` func is deprecated in favor of `Value.UpsertMBytes`. - `.BucketCounts` funcs are deprecated in favor of `.MBucketCounts`. - `.SetBucketCounts` funcs are deprecated in favor of `.SetMBucketCounts`. - `HistogramDataPoint.ExplicitBounds` func is deprecated in favor of `HistogramDataPoint.MExplicitBounds`. - `HistogramDataPoint.SetExplicitBounds` func is deprecated in favor of `HistogramDataPoint.SetMExplicitBounds`. * Update CHANGELOG.md --- CHANGELOG.md | 13 ++++ internal/otlptext/databuffer.go | 12 ++-- internal/testdata/metric.go | 10 ++-- .../cmd/pdatagen/internal/metrics_structs.go | 4 +- pdata/internal/common.go | 59 ++++++++++++++++++- pdata/internal/common_test.go | 14 ++--- pdata/internal/generated_pmetric.go | 24 ++++---- pdata/internal/generated_pmetric_test.go | 48 +++++++-------- pdata/internal/metrics.go | 36 +++++++++++ pdata/internal/metrics_test.go | 14 ++--- pdata/ptrace/json_test.go | 6 +- 11 files changed, 172 insertions(+), 68 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 47661450d5c..2539088b6c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,19 @@ ### 🚩 Deprecations 🚩 +- In preparation of migration to immutable slices for primitive type items, the following methods are renamed (#5344) + - `Value.BytesVal` func is deprecated in favor of `Value.MBytesVal`. + - `Value.SetBytesVal` func is deprecated in favor of `Value.SetMBytesVal`. + - `Value.UpdateBytes` func is deprecated in favor of `Value.UpdateMBytes`. + - `Value.InsertBytes` func is deprecated in favor of `Value.InsertMBytes`. + - `Value.UpsertBytes` func is deprecated in favor of `Value.UpsertMBytes`. + - `.BucketCounts` funcs are deprecated in favor of + `.MBucketCounts`. + - `.SetBucketCounts` funcs are deprecated in favor of + `.SetMBucketCounts`. + - `HistogramDataPoint.ExplicitBounds` func is deprecated in favor of `HistogramDataPoint.MExplicitBounds`. + - `HistogramDataPoint.SetExplicitBounds` func is deprecated in favor of `HistogramDataPoint.SetMExplicitBounds`. + ### 💡 Enhancements 💡 - `pdata`: Expose `pcommon.NewSliceFromRay` and `pcommon.Slice.AsRaw` functions (#5298) diff --git a/internal/otlptext/databuffer.go b/internal/otlptext/databuffer.go index f84b446c33c..2e7e4a28d5d 100644 --- a/internal/otlptext/databuffer.go +++ b/internal/otlptext/databuffer.go @@ -119,14 +119,14 @@ func (b *dataBuffer) logDoubleHistogramDataPoints(ps pmetric.HistogramDataPointS b.logEntry("Count: %d", p.Count()) b.logEntry("Sum: %f", p.Sum()) - bounds := p.ExplicitBounds() + bounds := p.MExplicitBounds() if len(bounds) != 0 { for i, bound := range bounds { b.logEntry("ExplicitBounds #%d: %f", i, bound) } } - buckets := p.BucketCounts() + buckets := p.MBucketCounts() if len(buckets) != 0 { for j, bucket := range buckets { b.logEntry("Buckets #%d, Count: %d", j, bucket) @@ -157,13 +157,13 @@ func (b *dataBuffer) logExponentialHistogramDataPoints(ps pmetric.ExponentialHis // uses a lookup table for the last finite boundary, which can be // easily computed using `math/big` (for scales up to 20). - negB := p.Negative().BucketCounts() - posB := p.Positive().BucketCounts() + negB := p.Negative().MBucketCounts() + posB := p.Positive().MBucketCounts() for i := 0; i < len(negB); i++ { pos := len(negB) - i - 1 index := p.Negative().Offset() + int32(pos) - count := p.Negative().BucketCounts()[pos] + count := p.Negative().MBucketCounts()[pos] lower := math.Exp(float64(index) * factor) upper := math.Exp(float64(index+1) * factor) b.logEntry("Bucket (%f, %f], Count: %d", -upper, -lower, count) @@ -175,7 +175,7 @@ func (b *dataBuffer) logExponentialHistogramDataPoints(ps pmetric.ExponentialHis for pos := 0; pos < len(posB); pos++ { index := p.Positive().Offset() + int32(pos) - count := p.Positive().BucketCounts()[pos] + count := p.Positive().MBucketCounts()[pos] lower := math.Exp(float64(index) * factor) upper := math.Exp(float64(index+1) * factor) b.logEntry("Bucket [%f, %f), Count: %d", lower, upper, count) diff --git a/internal/testdata/metric.go b/internal/testdata/metric.go index 76387d21ec4..02737d5b625 100644 --- a/internal/testdata/metric.go +++ b/internal/testdata/metric.go @@ -206,12 +206,12 @@ func initHistogramMetric(hm pmetric.Metric) { hdp1.SetTimestamp(TestMetricTimestamp) hdp1.SetCount(1) hdp1.SetSum(15) - hdp1.SetBucketCounts([]uint64{0, 1}) + hdp1.SetMBucketCounts([]uint64{0, 1}) exemplar := hdp1.Exemplars().AppendEmpty() exemplar.SetTimestamp(TestMetricExemplarTimestamp) exemplar.SetDoubleVal(15) initMetricAttachment(exemplar.FilteredAttributes()) - hdp1.SetExplicitBounds([]float64{1}) + hdp1.SetMExplicitBounds([]float64{1}) } func initExponentialHistogramMetric(hm pmetric.Metric) { @@ -229,10 +229,10 @@ func initExponentialHistogramMetric(hm pmetric.Metric) { // positive index 1 and 2 are values sqrt(2), 2 at scale 1 hdp0.Positive().SetOffset(1) - hdp0.Positive().SetBucketCounts([]uint64{1, 1}) + hdp0.Positive().SetMBucketCounts([]uint64{1, 1}) // negative index -1 and 0 are values -1/sqrt(2), -1 at scale 1 hdp0.Negative().SetOffset(-1) - hdp0.Negative().SetBucketCounts([]uint64{1, 1}) + hdp0.Negative().SetMBucketCounts([]uint64{1, 1}) // The above will print: // Bucket (-1.414214, -1.000000], Count: 1 @@ -252,7 +252,7 @@ func initExponentialHistogramMetric(hm pmetric.Metric) { // index -1 and 0 are values 0.25, 1 at scale -1 hdp1.Positive().SetOffset(-1) - hdp1.Positive().SetBucketCounts([]uint64{1, 1}) + hdp1.Positive().SetMBucketCounts([]uint64{1, 1}) // The above will print: // Bucket [0, 0], Count: 1 diff --git a/pdata/internal/cmd/pdatagen/internal/metrics_structs.go b/pdata/internal/cmd/pdatagen/internal/metrics_structs.go index 863383bd664..a3023fc87f5 100644 --- a/pdata/internal/cmd/pdatagen/internal/metrics_structs.go +++ b/pdata/internal/cmd/pdatagen/internal/metrics_structs.go @@ -476,7 +476,7 @@ var valueFloat64Field = &primitiveField{ } var bucketCountsField = &primitiveSliceField{ - fieldName: "BucketCounts", + fieldName: "MBucketCounts", originFieldName: "BucketCounts", returnType: "[]uint64", defaultVal: "[]uint64(nil)", @@ -485,7 +485,7 @@ var bucketCountsField = &primitiveSliceField{ } var explicitBoundsField = &primitiveSliceField{ - fieldName: "ExplicitBounds", + fieldName: "MExplicitBounds", originFieldName: "ExplicitBounds", returnType: "[]float64", defaultVal: "[]float64(nil)", diff --git a/pdata/internal/common.go b/pdata/internal/common.go index ef31705553d..bc231c02e00 100644 --- a/pdata/internal/common.go +++ b/pdata/internal/common.go @@ -262,10 +262,19 @@ func (v Value) SliceVal() Slice { // If the Type() is not ValueTypeBytes then returns false. // Calling this function on zero-initialized Value will cause a panic. // Modifying the returned []byte in-place is forbidden. +// Deprecated: [0.51.0] Use MBytesVal instead. func (v Value) BytesVal() []byte { return v.orig.GetBytesValue() } +// MBytesVal returns the []byte value associated with this Value. +// If the Type() is not ValueTypeBytes then returns false. +// Calling this function on zero-initialized Value will cause a panic. +// Modifying the returned []byte in-place is forbidden. +func (v Value) MBytesVal() []byte { + return v.orig.GetBytesValue() +} + // SetStringVal replaces the string value associated with this Value, // it also changes the type to be ValueTypeString. // Calling this function on zero-initialized Value will cause a panic. @@ -299,10 +308,20 @@ func (v Value) SetBoolVal(bv bool) { // Calling this function on zero-initialized Value will cause a panic. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data // across multiple attributes is forbidden. +// Deprecated: [0.51.0] Use SetMBytesVal instead. func (v Value) SetBytesVal(bv []byte) { v.orig.Value = &otlpcommon.AnyValue_BytesValue{BytesValue: bv} } +// SetMBytesVal replaces the []byte value associated with this Value, +// it also changes the type to be ValueTypeBytes. +// Calling this function on zero-initialized Value will cause a panic. +// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data +// across multiple attributes is forbidden. +func (v Value) SetMBytesVal(bv []byte) { + v.orig.Value = &otlpcommon.AnyValue_BytesValue{BytesValue: bv} +} + // copyTo copies the value to Value. Will panic if dest is nil. func (v Value) copyTo(dest *otlpcommon.AnyValue) { switch ov := v.orig.Value.(type) { @@ -709,12 +728,23 @@ func (m Map) InsertBool(k string, v bool) { // No action is applied to the map where the key already exists. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data // across multiple attributes is forbidden. +// Deprecated: [0.51.0] Use InsertMBytes instead. func (m Map) InsertBytes(k string, v []byte) { if _, existing := m.Get(k); !existing { *m.orig = append(*m.orig, newAttributeKeyValueBytes(k, v)) } } +// InsertMBytes adds the []byte Value to the map when the key does not exist. +// No action is applied to the map where the key already exists. +// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data +// across multiple attributes is forbidden. +func (m Map) InsertMBytes(k string, v []byte) { + if _, existing := m.Get(k); !existing { + *m.orig = append(*m.orig, newAttributeKeyValueBytes(k, v)) + } +} + // Update updates an existing Value with a value. // No action is applied to the map where the key does not exist. // @@ -764,9 +794,20 @@ func (m Map) UpdateBool(k string, v bool) { // No action is applied to the map where the key does not exist. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data // across multiple attributes is forbidden. +// Deprecated: [0.51.0] Use UpdateMBytes instead. func (m Map) UpdateBytes(k string, v []byte) { if av, existing := m.Get(k); existing { - av.SetBytesVal(v) + av.SetMBytesVal(v) + } +} + +// UpdateMBytes updates an existing []byte Value with a value. +// No action is applied to the map where the key does not exist. +// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data +// across multiple attributes is forbidden. +func (m Map) UpdateMBytes(k string, v []byte) { + if av, existing := m.Get(k); existing { + av.SetMBytesVal(v) } } @@ -835,9 +876,23 @@ func (m Map) UpsertBool(k string, v bool) { // updated to the map where the key already existed. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data // across multiple attributes is forbidden. +// Deprecated: [0.51.0] Use UpsertMBytes instead. func (m Map) UpsertBytes(k string, v []byte) { if av, existing := m.Get(k); existing { - av.SetBytesVal(v) + av.SetMBytesVal(v) + } else { + *m.orig = append(*m.orig, newAttributeKeyValueBytes(k, v)) + } +} + +// UpsertMBytes performs the Insert or Update action. The []byte Value is +// inserted to the map that did not originally have the key. The key/value is +// updated to the map where the key already existed. +// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data +// across multiple attributes is forbidden. +func (m Map) UpsertMBytes(k string, v []byte) { + if av, existing := m.Get(k); existing { + av.SetMBytesVal(v) } else { *m.orig = append(*m.orig, newAttributeKeyValueBytes(k, v)) } diff --git a/pdata/internal/common_test.go b/pdata/internal/common_test.go index 73d82d56003..290bff5cbe2 100644 --- a/pdata/internal/common_test.go +++ b/pdata/internal/common_test.go @@ -298,7 +298,7 @@ func TestNilMap(t *testing.T) { assert.EqualValues(t, generateTestBoolMap(), insertMapBool) insertMapBytes := NewMap() - insertMapBytes.InsertBytes("k", []byte{1, 2, 3, 4, 5}) + insertMapBytes.InsertMBytes("k", []byte{1, 2, 3, 4, 5}) assert.EqualValues(t, generateTestBytesMap(), insertMapBytes) updateMap := NewMap() @@ -322,7 +322,7 @@ func TestNilMap(t *testing.T) { assert.EqualValues(t, NewMap(), updateMapBool) updateMapBytes := NewMap() - updateMapBytes.UpdateBytes("k", []byte{1, 2, 3}) + updateMapBytes.UpdateMBytes("k", []byte{1, 2, 3}) assert.EqualValues(t, NewMap(), updateMapBytes) upsertMap := NewMap() @@ -346,7 +346,7 @@ func TestNilMap(t *testing.T) { assert.EqualValues(t, generateTestBoolMap(), upsertMapBool) upsertMapBytes := NewMap() - upsertMapBytes.UpsertBytes("k", []byte{1, 2, 3, 4, 5}) + upsertMapBytes.UpsertMBytes("k", []byte{1, 2, 3, 4, 5}) assert.EqualValues(t, generateTestBytesMap(), upsertMapBytes) removeMap := NewMap() @@ -412,7 +412,7 @@ func TestMapWithEmpty(t *testing.T) { assert.EqualValues(t, ValueTypeBool, val.Type()) assert.True(t, val.BoolVal()) - sm.InsertBytes("other_key_bytes", []byte{1, 2, 3}) + sm.InsertMBytes("other_key_bytes", []byte{1, 2, 3}) val, exist = sm.Get("other_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) @@ -448,7 +448,7 @@ func TestMapWithEmpty(t *testing.T) { assert.EqualValues(t, ValueTypeBool, val.Type()) assert.False(t, val.BoolVal()) - sm.UpdateBytes("other_key_bytes", []byte{4, 5, 6}) + sm.UpdateMBytes("other_key_bytes", []byte{4, 5, 6}) val, exist = sm.Get("other_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) @@ -484,7 +484,7 @@ func TestMapWithEmpty(t *testing.T) { assert.EqualValues(t, ValueTypeBool, val.Type()) assert.True(t, val.BoolVal()) - sm.UpsertBytes("other_key_bytes", []byte{7, 8, 9}) + sm.UpsertMBytes("other_key_bytes", []byte{7, 8, 9}) val, exist = sm.Get("other_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) @@ -520,7 +520,7 @@ func TestMapWithEmpty(t *testing.T) { assert.EqualValues(t, ValueTypeBool, val.Type()) assert.False(t, val.BoolVal()) - sm.UpsertBytes("yet_another_key_bytes", []byte{1}) + sm.UpsertMBytes("yet_another_key_bytes", []byte{1}) val, exist = sm.Get("yet_another_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) diff --git a/pdata/internal/generated_pmetric.go b/pdata/internal/generated_pmetric.go index 4e4a4df13e4..7806df195ac 100644 --- a/pdata/internal/generated_pmetric.go +++ b/pdata/internal/generated_pmetric.go @@ -1444,23 +1444,23 @@ func (ms HistogramDataPoint) SetSum(v float64) { (*ms.orig).Sum_ = &otlpmetrics.HistogramDataPoint_Sum{Sum: v} } -// BucketCounts returns the bucketcounts associated with this HistogramDataPoint. -func (ms HistogramDataPoint) BucketCounts() []uint64 { +// MBucketCounts returns the mbucketcounts associated with this HistogramDataPoint. +func (ms HistogramDataPoint) MBucketCounts() []uint64 { return (*ms.orig).BucketCounts } -// SetBucketCounts replaces the bucketcounts associated with this HistogramDataPoint. -func (ms HistogramDataPoint) SetBucketCounts(v []uint64) { +// SetMBucketCounts replaces the mbucketcounts associated with this HistogramDataPoint. +func (ms HistogramDataPoint) SetMBucketCounts(v []uint64) { (*ms.orig).BucketCounts = v } -// ExplicitBounds returns the explicitbounds associated with this HistogramDataPoint. -func (ms HistogramDataPoint) ExplicitBounds() []float64 { +// MExplicitBounds returns the mexplicitbounds associated with this HistogramDataPoint. +func (ms HistogramDataPoint) MExplicitBounds() []float64 { return (*ms.orig).ExplicitBounds } -// SetExplicitBounds replaces the explicitbounds associated with this HistogramDataPoint. -func (ms HistogramDataPoint) SetExplicitBounds(v []float64) { +// SetMExplicitBounds replaces the mexplicitbounds associated with this HistogramDataPoint. +func (ms HistogramDataPoint) SetMExplicitBounds(v []float64) { (*ms.orig).ExplicitBounds = v } @@ -1822,13 +1822,13 @@ func (ms Buckets) SetOffset(v int32) { (*ms.orig).Offset = int32(v) } -// BucketCounts returns the bucketcounts associated with this Buckets. -func (ms Buckets) BucketCounts() []uint64 { +// MBucketCounts returns the mbucketcounts associated with this Buckets. +func (ms Buckets) MBucketCounts() []uint64 { return (*ms.orig).BucketCounts } -// SetBucketCounts replaces the bucketcounts associated with this Buckets. -func (ms Buckets) SetBucketCounts(v []uint64) { +// SetMBucketCounts replaces the mbucketcounts associated with this Buckets. +func (ms Buckets) SetMBucketCounts(v []uint64) { (*ms.orig).BucketCounts = v } diff --git a/pdata/internal/generated_pmetric_test.go b/pdata/internal/generated_pmetric_test.go index a457d7cef25..c0706d647be 100644 --- a/pdata/internal/generated_pmetric_test.go +++ b/pdata/internal/generated_pmetric_test.go @@ -1065,13 +1065,13 @@ func TestHistogramDataPoint_CopyTo(t *testing.T) { orig = generateTestHistogramDataPoint() orig.CopyTo(ms) assert.EqualValues(t, orig, ms) - orig.BucketCounts()[0] = 0 + orig.MBucketCounts()[0] = 0 assert.NotEqualValues(t, orig, ms) - orig.BucketCounts()[0] = []uint64{1, 2, 3}[0] + orig.MBucketCounts()[0] = []uint64{1, 2, 3}[0] assert.EqualValues(t, orig, ms) - orig.ExplicitBounds()[0] = 0 + orig.MExplicitBounds()[0] = 0 assert.NotEqualValues(t, orig, ms) - orig.ExplicitBounds()[0] = []float64{1, 2, 3}[0] + orig.MExplicitBounds()[0] = []float64{1, 2, 3}[0] assert.EqualValues(t, orig, ms) } @@ -1115,20 +1115,20 @@ func TestHistogramDataPoint_Sum(t *testing.T) { assert.EqualValues(t, testValSum, ms.Sum()) } -func TestHistogramDataPoint_BucketCounts(t *testing.T) { +func TestHistogramDataPoint_MBucketCounts(t *testing.T) { ms := NewHistogramDataPoint() - assert.EqualValues(t, []uint64(nil), ms.BucketCounts()) - testValBucketCounts := []uint64{1, 2, 3} - ms.SetBucketCounts(testValBucketCounts) - assert.EqualValues(t, testValBucketCounts, ms.BucketCounts()) + assert.EqualValues(t, []uint64(nil), ms.MBucketCounts()) + testValMBucketCounts := []uint64{1, 2, 3} + ms.SetMBucketCounts(testValMBucketCounts) + assert.EqualValues(t, testValMBucketCounts, ms.MBucketCounts()) } -func TestHistogramDataPoint_ExplicitBounds(t *testing.T) { +func TestHistogramDataPoint_MExplicitBounds(t *testing.T) { ms := NewHistogramDataPoint() - assert.EqualValues(t, []float64(nil), ms.ExplicitBounds()) - testValExplicitBounds := []float64{1, 2, 3} - ms.SetExplicitBounds(testValExplicitBounds) - assert.EqualValues(t, testValExplicitBounds, ms.ExplicitBounds()) + assert.EqualValues(t, []float64(nil), ms.MExplicitBounds()) + testValMExplicitBounds := []float64{1, 2, 3} + ms.SetMExplicitBounds(testValMExplicitBounds) + assert.EqualValues(t, testValMExplicitBounds, ms.MExplicitBounds()) } func TestHistogramDataPoint_Exemplars(t *testing.T) { @@ -1375,9 +1375,9 @@ func TestBuckets_CopyTo(t *testing.T) { orig = generateTestBuckets() orig.CopyTo(ms) assert.EqualValues(t, orig, ms) - orig.BucketCounts()[0] = 0 + orig.MBucketCounts()[0] = 0 assert.NotEqualValues(t, orig, ms) - orig.BucketCounts()[0] = []uint64{1, 2, 3}[0] + orig.MBucketCounts()[0] = []uint64{1, 2, 3}[0] assert.EqualValues(t, orig, ms) } @@ -1389,12 +1389,12 @@ func TestBuckets_Offset(t *testing.T) { assert.EqualValues(t, testValOffset, ms.Offset()) } -func TestBuckets_BucketCounts(t *testing.T) { +func TestBuckets_MBucketCounts(t *testing.T) { ms := NewBuckets() - assert.EqualValues(t, []uint64(nil), ms.BucketCounts()) - testValBucketCounts := []uint64{1, 2, 3} - ms.SetBucketCounts(testValBucketCounts) - assert.EqualValues(t, testValBucketCounts, ms.BucketCounts()) + assert.EqualValues(t, []uint64(nil), ms.MBucketCounts()) + testValMBucketCounts := []uint64{1, 2, 3} + ms.SetMBucketCounts(testValMBucketCounts) + assert.EqualValues(t, testValMBucketCounts, ms.MBucketCounts()) } func TestSummaryDataPointSlice(t *testing.T) { @@ -2091,8 +2091,8 @@ func fillTestHistogramDataPoint(tv HistogramDataPoint) { tv.SetTimestamp(Timestamp(1234567890)) tv.SetCount(uint64(17)) tv.SetSum(float64(17.13)) - tv.SetBucketCounts([]uint64{1, 2, 3}) - tv.SetExplicitBounds([]float64{1, 2, 3}) + tv.SetMBucketCounts([]uint64{1, 2, 3}) + tv.SetMExplicitBounds([]float64{1, 2, 3}) fillTestExemplarSlice(tv.Exemplars()) tv.SetFlags(MetricDataPointFlagsNone) } @@ -2139,7 +2139,7 @@ func generateTestBuckets() Buckets { func fillTestBuckets(tv Buckets) { tv.SetOffset(int32(909)) - tv.SetBucketCounts([]uint64{1, 2, 3}) + tv.SetMBucketCounts([]uint64{1, 2, 3}) } func generateTestSummaryDataPointSlice() SummaryDataPointSlice { diff --git a/pdata/internal/metrics.go b/pdata/internal/metrics.go index 1a032c0f716..75bbc39a384 100644 --- a/pdata/internal/metrics.go +++ b/pdata/internal/metrics.go @@ -284,3 +284,39 @@ func (ot OptionalType) String() string { } return "" } + +// BucketCounts returns the bucketcounts associated with this HistogramDataPoint. +// Deprecated: [0.51.0] Use MBucketCounts instead. +func (ms HistogramDataPoint) BucketCounts() []uint64 { + return ms.orig.BucketCounts +} + +// SetBucketCounts replaces the bucketcounts associated with this HistogramDataPoint. +// Deprecated: [0.51.0] Use SetMBucketCounts instead. +func (ms HistogramDataPoint) SetBucketCounts(v []uint64) { + ms.orig.BucketCounts = v +} + +// ExplicitBounds returns the explicitbounds associated with this HistogramDataPoint. +// Deprecated: [0.51.0] Use MExplicitBounds instead. +func (ms HistogramDataPoint) ExplicitBounds() []float64 { + return ms.orig.ExplicitBounds +} + +// SetExplicitBounds replaces the explicitbounds associated with this HistogramDataPoint. +// Deprecated: [0.51.0] Use SetMExplicitBounds instead. +func (ms HistogramDataPoint) SetExplicitBounds(v []float64) { + ms.orig.ExplicitBounds = v +} + +// BucketCounts returns the bucketcounts associated with this Buckets. +// Deprecated: [0.51.0] Use MBucketCounts instead. +func (ms Buckets) BucketCounts() []uint64 { + return ms.orig.BucketCounts +} + +// SetBucketCounts replaces the bucketcounts associated with this Buckets. +// Deprecated: [0.51.0] Use SetMBucketCounts instead. +func (ms Buckets) SetBucketCounts(v []uint64) { + ms.orig.BucketCounts = v +} diff --git a/pdata/internal/metrics_test.go b/pdata/internal/metrics_test.go index cbc6504d71a..01503603301 100644 --- a/pdata/internal/metrics_test.go +++ b/pdata/internal/metrics_test.go @@ -310,15 +310,15 @@ func TestOtlpToInternalReadOnly(t *testing.T) { // First point assert.EqualValues(t, startTime, histogramDataPoints.At(0).StartTimestamp()) assert.EqualValues(t, endTime, histogramDataPoints.At(0).Timestamp()) - assert.EqualValues(t, []float64{1, 2}, histogramDataPoints.At(0).ExplicitBounds()) + assert.EqualValues(t, []float64{1, 2}, histogramDataPoints.At(0).MExplicitBounds()) assert.EqualValues(t, NewMapFromRaw(map[string]interface{}{"key0": "value0"}), histogramDataPoints.At(0).Attributes()) - assert.EqualValues(t, []uint64{10, 15, 1}, histogramDataPoints.At(0).BucketCounts()) + assert.EqualValues(t, []uint64{10, 15, 1}, histogramDataPoints.At(0).MBucketCounts()) // Second point assert.EqualValues(t, startTime, histogramDataPoints.At(1).StartTimestamp()) assert.EqualValues(t, endTime, histogramDataPoints.At(1).Timestamp()) - assert.EqualValues(t, []float64{1}, histogramDataPoints.At(1).ExplicitBounds()) + assert.EqualValues(t, []float64{1}, histogramDataPoints.At(1).MExplicitBounds()) assert.EqualValues(t, NewMapFromRaw(map[string]interface{}{"key1": "value1"}), histogramDataPoints.At(1).Attributes()) - assert.EqualValues(t, []uint64{10, 1}, histogramDataPoints.At(1).BucketCounts()) + assert.EqualValues(t, []uint64{10, 1}, histogramDataPoints.At(1).MBucketCounts()) } func TestOtlpToFromInternalReadOnly(t *testing.T) { @@ -559,9 +559,9 @@ func TestOtlpToFromInternalHistogramMutating(t *testing.T) { histogramDataPoints.At(0).Attributes().Remove("key0") histogramDataPoints.At(0).Attributes().UpsertString("k", "v") assert.EqualValues(t, newAttributes, histogramDataPoints.At(0).Attributes()) - histogramDataPoints.At(0).SetExplicitBounds([]float64{1}) - assert.EqualValues(t, []float64{1}, histogramDataPoints.At(0).ExplicitBounds()) - histogramDataPoints.At(0).SetBucketCounts([]uint64{21, 32}) + histogramDataPoints.At(0).SetMExplicitBounds([]float64{1}) + assert.EqualValues(t, []float64{1}, histogramDataPoints.At(0).MExplicitBounds()) + histogramDataPoints.At(0).SetMBucketCounts([]uint64{21, 32}) // Test that everything is updated. assert.EqualValues(t, &otlpmetrics.MetricsData{ ResourceMetrics: []*otlpmetrics.ResourceMetrics{ diff --git a/pdata/ptrace/json_test.go b/pdata/ptrace/json_test.go index b02a10828ca..bfa2651bee3 100644 --- a/pdata/ptrace/json_test.go +++ b/pdata/ptrace/json_test.go @@ -95,7 +95,7 @@ var tracesOTLPFull = func() Traces { sp.Attributes().UpsertBool("bool", true) sp.Attributes().UpsertInt("int", 1) sp.Attributes().UpsertDouble("double", 1.1) - sp.Attributes().UpsertBytes("bytes", []byte("foo")) + sp.Attributes().UpsertMBytes("bytes", []byte("foo")) arr := internal.NewValueSlice() arr.SliceVal().AppendEmpty().SetIntVal(1) arr.SliceVal().AppendEmpty().SetStringVal("str") @@ -113,7 +113,7 @@ var tracesOTLPFull = func() Traces { event.Attributes().UpsertBool("bool", true) event.Attributes().UpsertInt("int", 1) event.Attributes().UpsertDouble("double", 1.1) - event.Attributes().UpsertBytes("bytes", []byte("foo")) + event.Attributes().UpsertMBytes("bytes", []byte("foo")) // Add links. link := sp.Links().AppendEmpty() link.SetTraceState("state") @@ -124,7 +124,7 @@ var tracesOTLPFull = func() Traces { link.Attributes().UpsertBool("bool", true) link.Attributes().UpsertInt("int", 1) link.Attributes().UpsertDouble("double", 1.1) - link.Attributes().UpsertBytes("bytes", []byte("foo")) + link.Attributes().UpsertMBytes("bytes", []byte("foo")) // Add another span. sp2 := il.Spans().AppendEmpty() sp2.SetName("testSpan2") From 4878d42b16e49dc4c6e93893aea45a73890af615 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 11 May 2022 13:07:33 -0700 Subject: [PATCH 23/67] Prerelease collector v0.51.0 (#5340) * Update versions.yaml Signed-off-by: Bogdan Drutu * Prepare collector-base for version v0.51.0 * Update changelog Signed-off-by: Bogdan Drutu * more upgrades Signed-off-by: Bogdan Drutu * Update CHANGELOG.md --- CHANGELOG.md | 12 +++++++++++- cmd/builder/internal/builder/config.go | 2 +- cmd/otelcorecol/builder-config.yaml | 20 ++++++++++---------- cmd/otelcorecol/go.mod | 6 +++--- cmd/otelcorecol/main.go | 2 +- examples/k8s/otel-config.yaml | 2 +- go.mod | 4 ++-- versions.yaml | 2 +- 8 files changed, 30 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2539088b6c5..94d21c93c71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,16 @@ ### 🛑 Breaking changes 🛑 +### 🚩 Deprecations 🚩 + +### 💡 Enhancements 💡 + +### 🧰 Bug fixes 🧰 + +## v0.51.0 Beta + +### 🛑 Breaking changes 🛑 + - Remove deprecated model module, everything is available in `pdata` and `semconv`. (#5281) - Old versions of the module are still available, but no new versions will be released. - Remove deprecated LogRecord.Name field. (#5202) @@ -25,7 +35,7 @@ ### 💡 Enhancements 💡 -- `pdata`: Expose `pcommon.NewSliceFromRay` and `pcommon.Slice.AsRaw` functions (#5298) +- `pdata`: Expose `pcommon.NewSliceFromRaw` and `pcommon.Slice.AsRaw` functions (#5311) ### 🧰 Bug fixes 🧰 diff --git a/cmd/builder/internal/builder/config.go b/cmd/builder/internal/builder/config.go index 07b62e6d5d1..67ed861b3fb 100644 --- a/cmd/builder/internal/builder/config.go +++ b/cmd/builder/internal/builder/config.go @@ -25,7 +25,7 @@ import ( "go.uber.org/zap" ) -const defaultOtelColVersion = "0.50.0" +const defaultOtelColVersion = "0.51.0" // ErrInvalidGoMod indicates an invalid gomod var ErrInvalidGoMod = errors.New("invalid gomod specification for module") diff --git a/cmd/otelcorecol/builder-config.yaml b/cmd/otelcorecol/builder-config.yaml index 47b049f9eb6..aaa45f9d1b7 100644 --- a/cmd/otelcorecol/builder-config.yaml +++ b/cmd/otelcorecol/builder-config.yaml @@ -2,29 +2,29 @@ dist: module: go.opentelemetry.io/collector/cmd/otelcorecol name: otelcorecol description: Local OpenTelemetry Collector binary, testing only. - version: 0.50.0-dev - otelcol_version: 0.50.0 + version: 0.51.0-dev + otelcol_version: 0.51.0 receivers: - import: go.opentelemetry.io/collector/receiver/otlpreceiver - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 exporters: - import: go.opentelemetry.io/collector/exporter/loggingexporter - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 - import: go.opentelemetry.io/collector/exporter/otlpexporter - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 - import: go.opentelemetry.io/collector/exporter/otlphttpexporter - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 extensions: - import: go.opentelemetry.io/collector/extension/ballastextension - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 - import: go.opentelemetry.io/collector/extension/zpagesextension - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 processors: - import: go.opentelemetry.io/collector/processor/batchprocessor - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 - import: go.opentelemetry.io/collector/processor/memorylimiterprocessor - gomod: go.opentelemetry.io/collector v0.50.0 + gomod: go.opentelemetry.io/collector v0.51.0 replaces: - go.opentelemetry.io/collector => ../../ diff --git a/cmd/otelcorecol/go.mod b/cmd/otelcorecol/go.mod index 91579cfd502..b7f662a1a19 100644 --- a/cmd/otelcorecol/go.mod +++ b/cmd/otelcorecol/go.mod @@ -6,7 +6,7 @@ go 1.17 require ( github.com/stretchr/testify v1.7.1 - go.opentelemetry.io/collector v0.50.0 + go.opentelemetry.io/collector v0.51.0 golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 ) @@ -55,8 +55,8 @@ require ( github.com/tklauser/numcpus v0.4.0 // indirect github.com/yusufpapurcu/wmi v1.2.2 // indirect go.opencensus.io v0.23.0 // indirect - go.opentelemetry.io/collector/pdata v0.50.0 // indirect - go.opentelemetry.io/collector/semconv v0.50.0 // indirect + go.opentelemetry.io/collector/pdata v0.51.0 // indirect + go.opentelemetry.io/collector/semconv v0.51.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 // indirect go.opentelemetry.io/contrib/zpages v0.32.0 // indirect diff --git a/cmd/otelcorecol/main.go b/cmd/otelcorecol/main.go index 90abf37eccc..4ef143ed0c8 100644 --- a/cmd/otelcorecol/main.go +++ b/cmd/otelcorecol/main.go @@ -21,7 +21,7 @@ func main() { info := component.BuildInfo{ Command: "otelcorecol", Description: "Local OpenTelemetry Collector binary, testing only.", - Version: "0.50.0-dev", + Version: "0.51.0-dev", } if err := run(service.CollectorSettings{BuildInfo: info, Factories: factories}); err != nil { diff --git a/examples/k8s/otel-config.yaml b/examples/k8s/otel-config.yaml index 0f520526120..1d78fd5bb0e 100644 --- a/examples/k8s/otel-config.yaml +++ b/examples/k8s/otel-config.yaml @@ -177,7 +177,7 @@ spec: - command: - "/otelcol" - "--config=/conf/otel-collector-config.yaml" - image: otel/opentelemetry-collector:0.50.0 + image: otel/opentelemetry-collector:0.51.0 name: otel-collector resources: limits: diff --git a/go.mod b/go.mod index 5ccc11250c0..8f415529451 100644 --- a/go.mod +++ b/go.mod @@ -20,8 +20,8 @@ require ( github.com/spf13/cobra v1.4.0 github.com/stretchr/testify v1.7.1 go.opencensus.io v0.23.0 - go.opentelemetry.io/collector/pdata v0.50.0 - go.opentelemetry.io/collector/semconv v0.50.0 + go.opentelemetry.io/collector/pdata v0.51.0 + go.opentelemetry.io/collector/semconv v0.51.0 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 go.opentelemetry.io/contrib/zpages v0.32.0 diff --git a/versions.yaml b/versions.yaml index 0ad42428d9d..114cb682e49 100644 --- a/versions.yaml +++ b/versions.yaml @@ -14,7 +14,7 @@ module-sets: collector-base: - version: v0.50.0 + version: v0.51.0 modules: - go.opentelemetry.io/collector - go.opentelemetry.io/collector/cmd/builder From df91fcef9cdb6820f7912d79f55ee66860e97a3f Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 11 May 2022 13:44:04 -0700 Subject: [PATCH 24/67] Remove deprecated pdata funcs/structs from v0.50.0 (#5345) Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 2 ++ pdata/plog/plogotlp/logs.go | 5 ----- pdata/pmetric/alias.go | 15 --------------- pdata/pmetric/pmetricotlp/metrics.go | 5 ----- pdata/ptrace/ptraceotlp/traces.go | 5 ----- 5 files changed, 2 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94d21c93c71..c07f913372b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### 🛑 Breaking changes 🛑 +- Remove deprecated pdata funcs/structs from v0.50.0 (#5345) + ### 🚩 Deprecations 🚩 ### 💡 Enhancements 💡 diff --git a/pdata/plog/plogotlp/logs.go b/pdata/plog/plogotlp/logs.go index 31ac5024c45..822370c2273 100644 --- a/pdata/plog/plogotlp/logs.go +++ b/pdata/plog/plogotlp/logs.go @@ -114,11 +114,6 @@ func (lr Request) UnmarshalJSON(data []byte) error { return nil } -// Deprecated: [v0.50.0] Use NewRequestFromLogs instead. -func (lr Request) SetLogs(ld plog.Logs) { - *lr.orig = *internal.LogsToOtlp(ld) -} - func (lr Request) Logs() plog.Logs { return internal.LogsFromOtlp(lr.orig) } diff --git a/pdata/pmetric/alias.go b/pdata/pmetric/alias.go index 527cee57d5f..340db69a0f1 100644 --- a/pdata/pmetric/alias.go +++ b/pdata/pmetric/alias.go @@ -73,21 +73,6 @@ const ( MetricDataPointFlagNoRecordedValue = internal.MetricDataPointFlagNoRecordedValue ) -// MetricValueType specifies the type of NumberDataPoint. -// Deprecated: [v0.50.0] Use NumberDataPointValueType or ExemplarValueType instead. -type MetricValueType = internal.NumberDataPointValueType - -const ( - // Deprecated: [v0.50.0] Use NumberDataPointValueTypeNone instead. - MetricValueTypeNone = internal.NumberDataPointValueTypeNone - - // Deprecated: [v0.50.0] Use NumberDataPointValueTypeInt. - MetricValueTypeInt = internal.NumberDataPointValueTypeInt - - // Deprecated: [v0.50.0] Use NumberDataPointValueTypeDouble instead. - MetricValueTypeDouble = internal.NumberDataPointValueTypeDouble -) - // NumberDataPointValueType specifies the type of NumberDataPoint value. type NumberDataPointValueType = internal.NumberDataPointValueType diff --git a/pdata/pmetric/pmetricotlp/metrics.go b/pdata/pmetric/pmetricotlp/metrics.go index 5f82610fd04..7499e6e185c 100644 --- a/pdata/pmetric/pmetricotlp/metrics.go +++ b/pdata/pmetric/pmetricotlp/metrics.go @@ -110,11 +110,6 @@ func (mr Request) UnmarshalJSON(data []byte) error { return nil } -// Deprecated: [v0.50.0] Use NewRequestFromMetrics instead. -func (mr Request) SetMetrics(ld pmetric.Metrics) { - *mr.orig = *internal.MetricsToOtlp(ld) -} - func (mr Request) Metrics() pmetric.Metrics { return internal.MetricsFromOtlp(mr.orig) } diff --git a/pdata/ptrace/ptraceotlp/traces.go b/pdata/ptrace/ptraceotlp/traces.go index 1bdfa53a56d..16884555d01 100644 --- a/pdata/ptrace/ptraceotlp/traces.go +++ b/pdata/ptrace/ptraceotlp/traces.go @@ -114,11 +114,6 @@ func (tr Request) UnmarshalJSON(data []byte) error { return nil } -// Deprecated: [v0.50.0] Use NewRequestFromTraces instead. -func (tr Request) SetTraces(td ptrace.Traces) { - *tr.orig = *internal.TracesToOtlp(td) -} - func (tr Request) Traces() ptrace.Traces { return internal.TracesFromOtlp(tr.orig) } From c368d497a2046011da4a39ee977ceed5f841c266 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 11 May 2022 15:46:03 -0700 Subject: [PATCH 25/67] Run make gotidy after multimod prerelease (#5343) Signed-off-by: Bogdan Drutu --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5e7c75c8cb5..2a4d766ffb2 100644 --- a/Makefile +++ b/Makefile @@ -362,3 +362,4 @@ multimod-verify: install-tools .PHONY: multimod-prerelease multimod-prerelease: install-tools multimod prerelease -v ./versions.yaml -m collector-base + $(MAKE) gotidy From dc39c10a52cf6945349b5366317ec3533437fbad Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 12 May 2022 09:53:34 -0700 Subject: [PATCH 26/67] configtelemetry: remove unnecessary private func, add unittests for public funcs (#5349) Signed-off-by: Bogdan Drutu --- config/configtelemetry/configtelemetry.go | 26 ++++++++----------- .../configtelemetry/configtelemetry_test.go | 12 ++++++--- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/config/configtelemetry/configtelemetry.go b/config/configtelemetry/configtelemetry.go index 326c9f2e6d6..3f3b9b18576 100644 --- a/config/configtelemetry/configtelemetry.go +++ b/config/configtelemetry/configtelemetry.go @@ -56,30 +56,26 @@ func (l Level) String() string { return "unknown" } -// UnmarshalText unmarshals text to a Level. +// UnmarshalText unmarshalls text to a Level. func (l *Level) UnmarshalText(text []byte) error { if l == nil { return fmt.Errorf("cannot unmarshal to a nil *Level") } - var err error - *l, err = parseLevel(string(text)) - return err -} - -// parseLevel returns the Level represented by the string. The parsing is case-insensitive -// and it returns error if the string value is unknown. -func parseLevel(str string) (Level, error) { - str = strings.ToLower(str) + str := strings.ToLower(string(text)) switch str { case levelNoneStr: - return LevelNone, nil + *l = LevelNone + return nil case levelBasicStr: - return LevelBasic, nil + *l = LevelBasic + return nil case levelNormalStr: - return LevelNormal, nil + *l = LevelNormal + return nil case levelDetailedStr: - return LevelDetailed, nil + *l = LevelDetailed + return nil } - return LevelNone, fmt.Errorf("unknown metrics level %q", str) + return fmt.Errorf("unknown metrics level %q", str) } diff --git a/config/configtelemetry/configtelemetry_test.go b/config/configtelemetry/configtelemetry_test.go index 4e0b1b57f70..7eb8b84af11 100644 --- a/config/configtelemetry/configtelemetry_test.go +++ b/config/configtelemetry/configtelemetry_test.go @@ -20,7 +20,7 @@ import ( "github.com/stretchr/testify/assert" ) -func TestParseFrom(t *testing.T) { +func TestUnmarshalText(t *testing.T) { tests := []struct { str string level Level @@ -56,17 +56,23 @@ func TestParseFrom(t *testing.T) { for _, test := range tests { t.Run(test.str, func(t *testing.T) { - lvl, err := parseLevel(test.str) + var lvl Level + err := lvl.UnmarshalText([]byte(test.str)) if test.err { assert.Error(t, err) } else { assert.NoError(t, err) + assert.Equal(t, test.level, lvl) } - assert.Equal(t, test.level, lvl) }) } } +func TestUnmarshalTextNilLevel(t *testing.T) { + lvl := (*Level)(nil) + assert.Error(t, lvl.UnmarshalText([]byte(levelNormalStr))) +} + func TestLevelString(t *testing.T) { tests := []struct { str string From 2ef5518cb9ca62f8d6d257986dd977a282a49299 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 12 May 2022 09:53:49 -0700 Subject: [PATCH 27/67] Rename collector-base to collector-core in multimod versions (#5342) Signed-off-by: Bogdan Drutu --- Makefile | 2 +- versions.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2a4d766ffb2..a27ed4f412c 100644 --- a/Makefile +++ b/Makefile @@ -361,5 +361,5 @@ multimod-verify: install-tools .PHONY: multimod-prerelease multimod-prerelease: install-tools - multimod prerelease -v ./versions.yaml -m collector-base + multimod prerelease -v ./versions.yaml -m collector-core $(MAKE) gotidy diff --git a/versions.yaml b/versions.yaml index 114cb682e49..1470965a4bf 100644 --- a/versions.yaml +++ b/versions.yaml @@ -13,13 +13,14 @@ # limitations under the License. module-sets: - collector-base: + collector-core: version: v0.51.0 modules: - go.opentelemetry.io/collector - go.opentelemetry.io/collector/cmd/builder - go.opentelemetry.io/collector/semconv - go.opentelemetry.io/collector/pdata + excluded-modules: - go.opentelemetry.io/collector/cmd/otelcorecol - go.opentelemetry.io/collector/internal/tools From 40443ec8c4aa8ccb296d0c3af8a9eea2dafb4a30 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 12 May 2022 10:13:02 -0700 Subject: [PATCH 28/67] Remove config unmarshaler interface, per deprecation comment (#5348) Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 1 + config/configunmarshaler/doc.go | 18 ------------ config/configunmarshaler/unmarshaler.go | 28 ------------------- service/config_provider.go | 21 +++----------- service/config_provider_test.go | 28 ------------------- .../configunmarshaler/defaultunmarshaler.go | 22 ++++++--------- .../defaultunmarshaler_test.go | 2 +- .../testdata/duplicate-exporter.yaml | 0 .../testdata/duplicate-extension.yaml | 0 .../testdata/duplicate-pipeline.yaml | 0 .../testdata/duplicate-processor.yaml | 0 .../testdata/duplicate-receiver.yaml | 0 .../testdata/empty-all-sections.yaml | 0 .../testdata/empty-config.yaml | 0 .../invalid-exporter-name-after-slash.yaml | 0 .../testdata/invalid-exporter-section.yaml | 0 .../testdata/invalid-exporter-sub-config.yaml | 0 .../testdata/invalid-exporter-type.yaml | 0 .../invalid-extension-name-after-slash.yaml | 0 .../testdata/invalid-extension-section.yaml | 0 .../invalid-extension-sub-config.yaml | 0 .../testdata/invalid-extension-type.yaml | 0 .../testdata/invalid-logs-level.yaml | 0 .../testdata/invalid-metrics-level.yaml | 0 .../invalid-pipeline-name-after-slash.yaml | 0 .../testdata/invalid-pipeline-section.yaml | 0 .../testdata/invalid-pipeline-sub-config.yaml | 0 .../testdata/invalid-pipeline-type.yaml | 0 .../invalid-processor-name-after-slash.yaml | 0 .../testdata/invalid-processor-section.yaml | 0 .../invalid-processor-sub-config.yaml | 0 .../testdata/invalid-processor-type.yaml | 0 .../invalid-receiver-name-after-slash.yaml | 0 .../testdata/invalid-receiver-section.yaml | 0 .../testdata/invalid-receiver-sub-config.yaml | 0 .../testdata/invalid-receiver-type.yaml | 0 .../testdata/invalid-sequence-value.yaml | 0 .../invalid-service-extensions-section.yaml | 0 .../testdata/invalid-service-section.yaml | 0 .../testdata/invalid-top-level-section.yaml | 0 .../testdata/unknown-exporter-type.yaml | 0 .../testdata/unknown-extension-type.yaml | 0 .../testdata/unknown-pipeline-type.yaml | 0 .../testdata/unknown-processor-type.yaml | 0 .../testdata/unknown-receiver-type.yaml | 0 .../testdata/valid-config.yaml | 0 service/servicetest/configprovider.go | 4 +-- 47 files changed, 16 insertions(+), 108 deletions(-) delete mode 100644 config/configunmarshaler/doc.go delete mode 100644 config/configunmarshaler/unmarshaler.go rename {internal => service/internal}/configunmarshaler/defaultunmarshaler.go (93%) rename {internal => service/internal}/configunmarshaler/defaultunmarshaler_test.go (99%) rename {internal => service/internal}/configunmarshaler/testdata/duplicate-exporter.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/duplicate-extension.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/duplicate-pipeline.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/duplicate-processor.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/duplicate-receiver.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/empty-all-sections.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/empty-config.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-exporter-name-after-slash.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-exporter-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-exporter-sub-config.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-exporter-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-extension-name-after-slash.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-extension-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-extension-sub-config.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-extension-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-logs-level.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-metrics-level.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-pipeline-name-after-slash.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-pipeline-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-pipeline-sub-config.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-pipeline-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-processor-name-after-slash.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-processor-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-processor-sub-config.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-processor-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-receiver-name-after-slash.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-receiver-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-receiver-sub-config.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-receiver-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-sequence-value.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-service-extensions-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-service-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/invalid-top-level-section.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/unknown-exporter-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/unknown-extension-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/unknown-pipeline-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/unknown-processor-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/unknown-receiver-type.yaml (100%) rename {internal => service/internal}/configunmarshaler/testdata/valid-config.yaml (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index c07f913372b..e6ef2e62feb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### 🛑 Breaking changes 🛑 +- Remove `configunmarshaler.Unmarshaler` interface, per deprecation comment )#5348) - Remove deprecated pdata funcs/structs from v0.50.0 (#5345) ### 🚩 Deprecations 🚩 diff --git a/config/configunmarshaler/doc.go b/config/configunmarshaler/doc.go deleted file mode 100644 index d2a55f05223..00000000000 --- a/config/configunmarshaler/doc.go +++ /dev/null @@ -1,18 +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 configunmarshaler implements configuration unmarshalling from a config.Map. -// The implementation relies on registered factories that allow creating -// default configuration for each type of receiver/exporter/processor. -package configunmarshaler // import "go.opentelemetry.io/collector/config/configunmarshaler" diff --git a/config/configunmarshaler/unmarshaler.go b/config/configunmarshaler/unmarshaler.go deleted file mode 100644 index d92df284046..00000000000 --- a/config/configunmarshaler/unmarshaler.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. - -package configunmarshaler // import "go.opentelemetry.io/collector/config/configunmarshaler" - -import ( - "go.opentelemetry.io/collector/internal/configunmarshaler" -) - -// Deprecated: [v0.50.0] if you need to update the config.Config implement custom (or wrap) service.ConfigProvider. -type ConfigUnmarshaler = configunmarshaler.ConfigUnmarshaler - -// Deprecated: [v0.50.0] not needed since interface will be removed. -var NewDefault = configunmarshaler.NewDefault - -// Deprecated: [v0.50.0] use config.UnmarshalReceiver. -var LoadReceiver = configunmarshaler.LoadReceiver diff --git a/service/config_provider.go b/service/config_provider.go index 48c4b2b9a8f..1e2b6e27858 100644 --- a/service/config_provider.go +++ b/service/config_provider.go @@ -24,7 +24,7 @@ import ( "go.opentelemetry.io/collector/config/mapprovider/envmapprovider" "go.opentelemetry.io/collector/config/mapprovider/filemapprovider" "go.opentelemetry.io/collector/config/mapprovider/yamlmapprovider" - "go.opentelemetry.io/collector/internal/configunmarshaler" + "go.opentelemetry.io/collector/service/internal/configunmarshaler" ) // ConfigProvider provides the service configuration. @@ -62,8 +62,7 @@ type ConfigProvider interface { } type configProvider struct { - mapResolver *mapResolver - configUnmarshaler configunmarshaler.ConfigUnmarshaler + mapResolver *mapResolver } // ConfigProviderSettings are the settings to configure the behavior of the ConfigProvider. @@ -78,11 +77,6 @@ type ConfigProviderSettings struct { // MapConverters is a slice of config.MapConverterFunc. MapConverters []config.MapConverterFunc - - // Deprecated: [v0.50.0] because providing custom ConfigUnmarshaler is not necessary since users can wrap/implement - // ConfigProvider if needed to change the resulted config. This functionality will be kept for at least 2 minor versions, - // and if nobody express a need for it will be removed. - Unmarshaler configunmarshaler.ConfigUnmarshaler } func newDefaultConfigProviderSettings(locations []string) ConfigProviderSettings { @@ -90,7 +84,6 @@ func newDefaultConfigProviderSettings(locations []string) ConfigProviderSettings Locations: locations, MapProviders: makeMapProvidersMap(filemapprovider.New(), envmapprovider.New(), yamlmapprovider.New()), MapConverters: []config.MapConverterFunc{expandmapconverter.New()}, - Unmarshaler: configunmarshaler.NewDefault(), } } @@ -105,14 +98,8 @@ func NewConfigProvider(set ConfigProviderSettings) (ConfigProvider, error) { return nil, err } - unmarshaler := set.Unmarshaler - if unmarshaler == nil { - unmarshaler = configunmarshaler.NewDefault() - } - return &configProvider{ - mapResolver: mr, - configUnmarshaler: unmarshaler, + mapResolver: mr, }, nil } @@ -123,7 +110,7 @@ func (cm *configProvider) Get(ctx context.Context, factories component.Factories } var cfg *config.Config - if cfg, err = cm.configUnmarshaler.Unmarshal(retMap, factories); err != nil { + if cfg, err = configunmarshaler.New().Unmarshal(retMap, factories); err != nil { return nil, fmt.Errorf("cannot unmarshal the configuration: %w", err) } diff --git a/service/config_provider_test.go b/service/config_provider_test.go index ae75236e788..afb4b4f9f7b 100644 --- a/service/config_provider_test.go +++ b/service/config_provider_test.go @@ -16,48 +16,20 @@ package service import ( "context" - "errors" "path/filepath" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/component/componenttest" - "go.opentelemetry.io/collector/config" ) -type errConfigUnmarshaler struct { - err error -} - -func (ecu *errConfigUnmarshaler) Unmarshal(*config.Map, component.Factories) (*config.Config, error) { - return nil, ecu.err -} - -func TestConfigProviderUnmarshalError(t *testing.T) { - factories, errF := componenttest.NopFactories() - require.NoError(t, errF) - - set := newDefaultConfigProviderSettings([]string{filepath.Join("testdata", "otelcol-nop.yaml")}) - set.Unmarshaler = &errConfigUnmarshaler{err: errors.New("unmarshal_err")} - - cfgW, err := NewConfigProvider(set) - assert.NoError(t, err) - - _, err = cfgW.Get(context.Background(), factories) - assert.Error(t, err) - - assert.NoError(t, cfgW.Shutdown(context.Background())) -} - func TestConfigProviderValidationError(t *testing.T) { factories, errF := componenttest.NopFactories() require.NoError(t, errF) set := newDefaultConfigProviderSettings([]string{filepath.Join("testdata", "otelcol-invalid.yaml")}) - set.Unmarshaler = &errConfigUnmarshaler{err: errors.New("unmarshal_err")} cfgW, err := NewConfigProvider(set) assert.NoError(t, err) diff --git a/internal/configunmarshaler/defaultunmarshaler.go b/service/internal/configunmarshaler/defaultunmarshaler.go similarity index 93% rename from internal/configunmarshaler/defaultunmarshaler.go rename to service/internal/configunmarshaler/defaultunmarshaler.go index 4de43165c3d..3e75f59d181 100644 --- a/internal/configunmarshaler/defaultunmarshaler.go +++ b/service/internal/configunmarshaler/defaultunmarshaler.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package configunmarshaler // import "go.opentelemetry.io/collector/internal/configunmarshaler" +package configunmarshaler // import "go.opentelemetry.io/collector/service/internal/configunmarshaler" import ( "fmt" @@ -25,12 +25,6 @@ import ( "go.opentelemetry.io/collector/config/configtelemetry" ) -// ConfigUnmarshaler is the interface that unmarshalls the collector configuration from the config.Map. -type ConfigUnmarshaler interface { - // Unmarshal the configuration from the given parser and factories. - Unmarshal(v *config.Map, factories component.Factories) (*config.Config, error) -} - // These are errors that can be returned by Unmarshal(). Note that error codes are not part // of Unmarshal()'s public API, they are for internal unit testing only. type configErrorCode int @@ -81,17 +75,17 @@ type configSettings struct { Service map[string]interface{} `mapstructure:"service"` } -type defaultUnmarshaler struct{} +type ConfigUnmarshaler struct{} -// NewDefault returns a default ConfigUnmarshaler that unmarshalls every configuration -// using the custom unmarshaler if present or default to strict -func NewDefault() ConfigUnmarshaler { - return &defaultUnmarshaler{} +// New returns a default ConfigUnmarshaler that unmarshalls every component's configuration +// using the custom unmarshaler if present or default strict unmarshaler otherwise. +func New() ConfigUnmarshaler { + return ConfigUnmarshaler{} } -// Unmarshal the Config from a config.Map. +// Unmarshal the config.Config from a config.Map. // After the config is unmarshalled, `Validate()` must be called to validate. -func (*defaultUnmarshaler) Unmarshal(v *config.Map, factories component.Factories) (*config.Config, error) { +func (ConfigUnmarshaler) Unmarshal(v *config.Map, factories component.Factories) (*config.Config, error) { var cfg config.Config // Unmarshal top level sections and validate. diff --git a/internal/configunmarshaler/defaultunmarshaler_test.go b/service/internal/configunmarshaler/defaultunmarshaler_test.go similarity index 99% rename from internal/configunmarshaler/defaultunmarshaler_test.go rename to service/internal/configunmarshaler/defaultunmarshaler_test.go index 55a6d8c8071..17cacd228ae 100644 --- a/internal/configunmarshaler/defaultunmarshaler_test.go +++ b/service/internal/configunmarshaler/defaultunmarshaler_test.go @@ -230,7 +230,7 @@ func loadConfigFile(t *testing.T, fileName string, factories component.Factories require.NoError(t, err) // Unmarshal the config from the config.Map using the given factories. - return NewDefault().Unmarshal(cm, factories) + return New().Unmarshal(cm, factories) } func TestDefaultLoggerConfig(t *testing.T) { diff --git a/internal/configunmarshaler/testdata/duplicate-exporter.yaml b/service/internal/configunmarshaler/testdata/duplicate-exporter.yaml similarity index 100% rename from internal/configunmarshaler/testdata/duplicate-exporter.yaml rename to service/internal/configunmarshaler/testdata/duplicate-exporter.yaml diff --git a/internal/configunmarshaler/testdata/duplicate-extension.yaml b/service/internal/configunmarshaler/testdata/duplicate-extension.yaml similarity index 100% rename from internal/configunmarshaler/testdata/duplicate-extension.yaml rename to service/internal/configunmarshaler/testdata/duplicate-extension.yaml diff --git a/internal/configunmarshaler/testdata/duplicate-pipeline.yaml b/service/internal/configunmarshaler/testdata/duplicate-pipeline.yaml similarity index 100% rename from internal/configunmarshaler/testdata/duplicate-pipeline.yaml rename to service/internal/configunmarshaler/testdata/duplicate-pipeline.yaml diff --git a/internal/configunmarshaler/testdata/duplicate-processor.yaml b/service/internal/configunmarshaler/testdata/duplicate-processor.yaml similarity index 100% rename from internal/configunmarshaler/testdata/duplicate-processor.yaml rename to service/internal/configunmarshaler/testdata/duplicate-processor.yaml diff --git a/internal/configunmarshaler/testdata/duplicate-receiver.yaml b/service/internal/configunmarshaler/testdata/duplicate-receiver.yaml similarity index 100% rename from internal/configunmarshaler/testdata/duplicate-receiver.yaml rename to service/internal/configunmarshaler/testdata/duplicate-receiver.yaml diff --git a/internal/configunmarshaler/testdata/empty-all-sections.yaml b/service/internal/configunmarshaler/testdata/empty-all-sections.yaml similarity index 100% rename from internal/configunmarshaler/testdata/empty-all-sections.yaml rename to service/internal/configunmarshaler/testdata/empty-all-sections.yaml diff --git a/internal/configunmarshaler/testdata/empty-config.yaml b/service/internal/configunmarshaler/testdata/empty-config.yaml similarity index 100% rename from internal/configunmarshaler/testdata/empty-config.yaml rename to service/internal/configunmarshaler/testdata/empty-config.yaml diff --git a/internal/configunmarshaler/testdata/invalid-exporter-name-after-slash.yaml b/service/internal/configunmarshaler/testdata/invalid-exporter-name-after-slash.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-exporter-name-after-slash.yaml rename to service/internal/configunmarshaler/testdata/invalid-exporter-name-after-slash.yaml diff --git a/internal/configunmarshaler/testdata/invalid-exporter-section.yaml b/service/internal/configunmarshaler/testdata/invalid-exporter-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-exporter-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-exporter-section.yaml diff --git a/internal/configunmarshaler/testdata/invalid-exporter-sub-config.yaml b/service/internal/configunmarshaler/testdata/invalid-exporter-sub-config.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-exporter-sub-config.yaml rename to service/internal/configunmarshaler/testdata/invalid-exporter-sub-config.yaml diff --git a/internal/configunmarshaler/testdata/invalid-exporter-type.yaml b/service/internal/configunmarshaler/testdata/invalid-exporter-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-exporter-type.yaml rename to service/internal/configunmarshaler/testdata/invalid-exporter-type.yaml diff --git a/internal/configunmarshaler/testdata/invalid-extension-name-after-slash.yaml b/service/internal/configunmarshaler/testdata/invalid-extension-name-after-slash.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-extension-name-after-slash.yaml rename to service/internal/configunmarshaler/testdata/invalid-extension-name-after-slash.yaml diff --git a/internal/configunmarshaler/testdata/invalid-extension-section.yaml b/service/internal/configunmarshaler/testdata/invalid-extension-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-extension-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-extension-section.yaml diff --git a/internal/configunmarshaler/testdata/invalid-extension-sub-config.yaml b/service/internal/configunmarshaler/testdata/invalid-extension-sub-config.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-extension-sub-config.yaml rename to service/internal/configunmarshaler/testdata/invalid-extension-sub-config.yaml diff --git a/internal/configunmarshaler/testdata/invalid-extension-type.yaml b/service/internal/configunmarshaler/testdata/invalid-extension-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-extension-type.yaml rename to service/internal/configunmarshaler/testdata/invalid-extension-type.yaml diff --git a/internal/configunmarshaler/testdata/invalid-logs-level.yaml b/service/internal/configunmarshaler/testdata/invalid-logs-level.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-logs-level.yaml rename to service/internal/configunmarshaler/testdata/invalid-logs-level.yaml diff --git a/internal/configunmarshaler/testdata/invalid-metrics-level.yaml b/service/internal/configunmarshaler/testdata/invalid-metrics-level.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-metrics-level.yaml rename to service/internal/configunmarshaler/testdata/invalid-metrics-level.yaml diff --git a/internal/configunmarshaler/testdata/invalid-pipeline-name-after-slash.yaml b/service/internal/configunmarshaler/testdata/invalid-pipeline-name-after-slash.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-pipeline-name-after-slash.yaml rename to service/internal/configunmarshaler/testdata/invalid-pipeline-name-after-slash.yaml diff --git a/internal/configunmarshaler/testdata/invalid-pipeline-section.yaml b/service/internal/configunmarshaler/testdata/invalid-pipeline-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-pipeline-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-pipeline-section.yaml diff --git a/internal/configunmarshaler/testdata/invalid-pipeline-sub-config.yaml b/service/internal/configunmarshaler/testdata/invalid-pipeline-sub-config.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-pipeline-sub-config.yaml rename to service/internal/configunmarshaler/testdata/invalid-pipeline-sub-config.yaml diff --git a/internal/configunmarshaler/testdata/invalid-pipeline-type.yaml b/service/internal/configunmarshaler/testdata/invalid-pipeline-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-pipeline-type.yaml rename to service/internal/configunmarshaler/testdata/invalid-pipeline-type.yaml diff --git a/internal/configunmarshaler/testdata/invalid-processor-name-after-slash.yaml b/service/internal/configunmarshaler/testdata/invalid-processor-name-after-slash.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-processor-name-after-slash.yaml rename to service/internal/configunmarshaler/testdata/invalid-processor-name-after-slash.yaml diff --git a/internal/configunmarshaler/testdata/invalid-processor-section.yaml b/service/internal/configunmarshaler/testdata/invalid-processor-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-processor-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-processor-section.yaml diff --git a/internal/configunmarshaler/testdata/invalid-processor-sub-config.yaml b/service/internal/configunmarshaler/testdata/invalid-processor-sub-config.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-processor-sub-config.yaml rename to service/internal/configunmarshaler/testdata/invalid-processor-sub-config.yaml diff --git a/internal/configunmarshaler/testdata/invalid-processor-type.yaml b/service/internal/configunmarshaler/testdata/invalid-processor-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-processor-type.yaml rename to service/internal/configunmarshaler/testdata/invalid-processor-type.yaml diff --git a/internal/configunmarshaler/testdata/invalid-receiver-name-after-slash.yaml b/service/internal/configunmarshaler/testdata/invalid-receiver-name-after-slash.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-receiver-name-after-slash.yaml rename to service/internal/configunmarshaler/testdata/invalid-receiver-name-after-slash.yaml diff --git a/internal/configunmarshaler/testdata/invalid-receiver-section.yaml b/service/internal/configunmarshaler/testdata/invalid-receiver-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-receiver-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-receiver-section.yaml diff --git a/internal/configunmarshaler/testdata/invalid-receiver-sub-config.yaml b/service/internal/configunmarshaler/testdata/invalid-receiver-sub-config.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-receiver-sub-config.yaml rename to service/internal/configunmarshaler/testdata/invalid-receiver-sub-config.yaml diff --git a/internal/configunmarshaler/testdata/invalid-receiver-type.yaml b/service/internal/configunmarshaler/testdata/invalid-receiver-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-receiver-type.yaml rename to service/internal/configunmarshaler/testdata/invalid-receiver-type.yaml diff --git a/internal/configunmarshaler/testdata/invalid-sequence-value.yaml b/service/internal/configunmarshaler/testdata/invalid-sequence-value.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-sequence-value.yaml rename to service/internal/configunmarshaler/testdata/invalid-sequence-value.yaml diff --git a/internal/configunmarshaler/testdata/invalid-service-extensions-section.yaml b/service/internal/configunmarshaler/testdata/invalid-service-extensions-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-service-extensions-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-service-extensions-section.yaml diff --git a/internal/configunmarshaler/testdata/invalid-service-section.yaml b/service/internal/configunmarshaler/testdata/invalid-service-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-service-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-service-section.yaml diff --git a/internal/configunmarshaler/testdata/invalid-top-level-section.yaml b/service/internal/configunmarshaler/testdata/invalid-top-level-section.yaml similarity index 100% rename from internal/configunmarshaler/testdata/invalid-top-level-section.yaml rename to service/internal/configunmarshaler/testdata/invalid-top-level-section.yaml diff --git a/internal/configunmarshaler/testdata/unknown-exporter-type.yaml b/service/internal/configunmarshaler/testdata/unknown-exporter-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/unknown-exporter-type.yaml rename to service/internal/configunmarshaler/testdata/unknown-exporter-type.yaml diff --git a/internal/configunmarshaler/testdata/unknown-extension-type.yaml b/service/internal/configunmarshaler/testdata/unknown-extension-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/unknown-extension-type.yaml rename to service/internal/configunmarshaler/testdata/unknown-extension-type.yaml diff --git a/internal/configunmarshaler/testdata/unknown-pipeline-type.yaml b/service/internal/configunmarshaler/testdata/unknown-pipeline-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/unknown-pipeline-type.yaml rename to service/internal/configunmarshaler/testdata/unknown-pipeline-type.yaml diff --git a/internal/configunmarshaler/testdata/unknown-processor-type.yaml b/service/internal/configunmarshaler/testdata/unknown-processor-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/unknown-processor-type.yaml rename to service/internal/configunmarshaler/testdata/unknown-processor-type.yaml diff --git a/internal/configunmarshaler/testdata/unknown-receiver-type.yaml b/service/internal/configunmarshaler/testdata/unknown-receiver-type.yaml similarity index 100% rename from internal/configunmarshaler/testdata/unknown-receiver-type.yaml rename to service/internal/configunmarshaler/testdata/unknown-receiver-type.yaml diff --git a/internal/configunmarshaler/testdata/valid-config.yaml b/service/internal/configunmarshaler/testdata/valid-config.yaml similarity index 100% rename from internal/configunmarshaler/testdata/valid-config.yaml rename to service/internal/configunmarshaler/testdata/valid-config.yaml diff --git a/service/servicetest/configprovider.go b/service/servicetest/configprovider.go index 921e8b5c403..1d7196bf59b 100644 --- a/service/servicetest/configprovider.go +++ b/service/servicetest/configprovider.go @@ -18,7 +18,7 @@ import ( "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/config/configtest" - "go.opentelemetry.io/collector/internal/configunmarshaler" + "go.opentelemetry.io/collector/service/internal/configunmarshaler" ) // LoadConfig loads a config.Config from file, and does NOT validate the configuration. @@ -28,7 +28,7 @@ func LoadConfig(fileName string, factories component.Factories) (*config.Config, if err != nil { return nil, err } - return configunmarshaler.NewDefault().Unmarshal(cfgMap, factories) + return configunmarshaler.New().Unmarshal(cfgMap, factories) } // LoadConfigAndValidate loads a config from the file, and validates the configuration. From 85c26ea01b607c15f8c33c8b52cee2db0e27f6b8 Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Thu, 12 May 2022 21:52:58 +0200 Subject: [PATCH 29/67] [extension/zpages] Register span processor within zpages extension code (#5294) * [extension/zpages] Register span processor within zpages extension code * Improve zpages test to test RegisterSpanProcessor method * Add comment about sampler * `make fmt` * Solve `make lint` issues (fingers crossed) * Address review comments --- extension/zpagesextension/factory.go | 2 +- extension/zpagesextension/zpagesextension.go | 62 ++++++++++++++++--- .../zpagesextension/zpagesextension_test.go | 34 ++++++---- service/collector.go | 21 +++---- service/host.go | 7 +-- service/service.go | 5 +- service/settings.go | 4 -- service/zpages.go | 4 -- 8 files changed, 89 insertions(+), 50 deletions(-) diff --git a/extension/zpagesextension/factory.go b/extension/zpagesextension/factory.go index 5d262a2804c..56483705ea7 100644 --- a/extension/zpagesextension/factory.go +++ b/extension/zpagesextension/factory.go @@ -45,5 +45,5 @@ func createDefaultConfig() config.Extension { // createExtension creates the extension based on this config. func createExtension(_ context.Context, set component.ExtensionCreateSettings, cfg config.Extension) (component.Extension, error) { - return newServer(cfg.(*Config), set.Logger), nil + return newServer(cfg.(*Config), set.TelemetrySettings), nil } diff --git a/extension/zpagesextension/zpagesextension.go b/extension/zpagesextension/zpagesextension.go index 22db8ae7c19..7cc942ead3d 100644 --- a/extension/zpagesextension/zpagesextension.go +++ b/extension/zpagesextension/zpagesextension.go @@ -17,30 +17,62 @@ package zpagesextension // import "go.opentelemetry.io/collector/extension/zpage import ( "context" "net/http" + "path" + "go.opentelemetry.io/contrib/zpages" + "go.opentelemetry.io/otel/sdk/trace" "go.uber.org/zap" "go.opentelemetry.io/collector/component" ) +const ( + tracezPath = "tracez" +) + type zpagesExtension struct { - config *Config - logger *zap.Logger - server http.Server - stopCh chan struct{} + config *Config + telemetry component.TelemetrySettings + zpagesSpanProcessor *zpages.SpanProcessor + server http.Server + stopCh chan struct{} +} + +// registerableTracerProvider is a tracer that supports +// the SDK methods RegisterSpanProcessor and UnregisterSpanProcessor. +// +// We use an interface instead of casting to the SDK tracer type to support tracer providers +// that extend the SDK. +type registerableTracerProvider interface { + // RegisterSpanProcessor adds the given SpanProcessor to the list of SpanProcessors. + // https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#TracerProvider.RegisterSpanProcessor. + RegisterSpanProcessor(SpanProcessor trace.SpanProcessor) + + // UnregisterSpanProcessor removes the given SpanProcessor from the list of SpanProcessors. + // https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace#TracerProvider.UnregisterSpanProcessor. + UnregisterSpanProcessor(SpanProcessor trace.SpanProcessor) } func (zpe *zpagesExtension) Start(_ context.Context, host component.Host) error { zPagesMux := http.NewServeMux() + sdktracer, ok := zpe.telemetry.TracerProvider.(registerableTracerProvider) + if ok { + sdktracer.RegisterSpanProcessor(zpe.zpagesSpanProcessor) + zPagesMux.Handle(path.Join("/debug", tracezPath), zpages.NewTracezHandler(zpe.zpagesSpanProcessor)) + zpe.telemetry.Logger.Info("Registered zPages span processor on tracer provider") + } else { + zpe.telemetry.Logger.Warn("zPages span processor registration is not available") + } + hostZPages, ok := host.(interface { RegisterZPages(mux *http.ServeMux, pathPrefix string) }) if ok { - zpe.logger.Info("Register Host's zPages") hostZPages.RegisterZPages(zPagesMux, "/debug") + zpe.telemetry.Logger.Info("Registered Host's zPages") } else { - zpe.logger.Info("Host's zPages not available") + zpe.telemetry.Logger.Warn("Host's zPages not available") } // Start the listener here so we can have earlier failure if port is @@ -50,7 +82,7 @@ func (zpe *zpagesExtension) Start(_ context.Context, host component.Host) error return err } - zpe.logger.Info("Starting zPages extension", zap.Any("config", zpe.config)) + zpe.telemetry.Logger.Info("Starting zPages extension", zap.Any("config", zpe.config)) zpe.server = http.Server{Handler: zPagesMux} zpe.stopCh = make(chan struct{}) go func() { @@ -69,12 +101,22 @@ func (zpe *zpagesExtension) Shutdown(context.Context) error { if zpe.stopCh != nil { <-zpe.stopCh } + + sdktracer, ok := zpe.telemetry.TracerProvider.(registerableTracerProvider) + if ok { + sdktracer.UnregisterSpanProcessor(zpe.zpagesSpanProcessor) + zpe.telemetry.Logger.Info("Unregistered zPages span processor on tracer provider") + } else { + zpe.telemetry.Logger.Warn("zPages span processor registration is not available") + } + return err } -func newServer(config *Config, logger *zap.Logger) *zpagesExtension { +func newServer(config *Config, telemetry component.TelemetrySettings) *zpagesExtension { return &zpagesExtension{ - config: config, - logger: logger, + config: config, + telemetry: telemetry, + zpagesSpanProcessor: zpages.NewSpanProcessor(), } } diff --git a/extension/zpagesextension/zpagesextension_test.go b/extension/zpagesextension/zpagesextension_test.go index 4df59e0b088..103a43eae40 100644 --- a/extension/zpagesextension/zpagesextension_test.go +++ b/extension/zpagesextension/zpagesextension_test.go @@ -18,12 +18,12 @@ import ( "context" "net" "net/http" - "path" "runtime" "testing" "github.com/stretchr/testify/require" - "go.uber.org/zap" + sdktrace "go.opentelemetry.io/otel/sdk/trace" + "go.opentelemetry.io/otel/trace" "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/component/componenttest" @@ -39,10 +39,22 @@ func newZPagesHost() *zpagesHost { return &zpagesHost{Host: componenttest.NewNopHost()} } -func (*zpagesHost) RegisterZPages(mux *http.ServeMux, pathPrefix string) { - mux.HandleFunc(path.Join(pathPrefix, "tracez"), func(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusOK) - }) +func (*zpagesHost) RegisterZPages(mux *http.ServeMux, pathPrefix string) {} + +var _ registerableTracerProvider = (*registerableProvider)(nil) +var _ registerableTracerProvider = sdktrace.NewTracerProvider() + +type registerableProvider struct { + trace.TracerProvider +} + +func (*registerableProvider) RegisterSpanProcessor(sdktrace.SpanProcessor) {} +func (*registerableProvider) UnregisterSpanProcessor(sdktrace.SpanProcessor) {} + +func newZpagesTelemetrySettings() component.TelemetrySettings { + set := componenttest.NewNopTelemetrySettings() + set.TracerProvider = ®isterableProvider{set.TracerProvider} + return set } func TestZPagesExtensionUsage(t *testing.T) { @@ -52,7 +64,7 @@ func TestZPagesExtensionUsage(t *testing.T) { }, } - zpagesExt := newServer(cfg, zap.NewNop()) + zpagesExt := newServer(cfg, newZpagesTelemetrySettings()) require.NotNil(t, zpagesExt) require.NoError(t, zpagesExt.Start(context.Background(), newZPagesHost())) @@ -83,7 +95,7 @@ func TestZPagesExtensionPortAlreadyInUse(t *testing.T) { Endpoint: endpoint, }, } - zpagesExt := newServer(cfg, zap.NewNop()) + zpagesExt := newServer(cfg, newZpagesTelemetrySettings()) require.NotNil(t, zpagesExt) require.Error(t, zpagesExt.Start(context.Background(), componenttest.NewNopHost())) @@ -96,7 +108,7 @@ func TestZPagesMultipleStarts(t *testing.T) { }, } - zpagesExt := newServer(cfg, zap.NewNop()) + zpagesExt := newServer(cfg, newZpagesTelemetrySettings()) require.NotNil(t, zpagesExt) require.NoError(t, zpagesExt.Start(context.Background(), componenttest.NewNopHost())) @@ -113,7 +125,7 @@ func TestZPagesMultipleShutdowns(t *testing.T) { }, } - zpagesExt := newServer(cfg, zap.NewNop()) + zpagesExt := newServer(cfg, newZpagesTelemetrySettings()) require.NotNil(t, zpagesExt) require.NoError(t, zpagesExt.Start(context.Background(), componenttest.NewNopHost())) @@ -128,7 +140,7 @@ func TestZPagesShutdownWithoutStart(t *testing.T) { }, } - zpagesExt := newServer(cfg, zap.NewNop()) + zpagesExt := newServer(cfg, newZpagesTelemetrySettings()) require.NotNil(t, zpagesExt) require.NoError(t, zpagesExt.Shutdown(context.Background())) diff --git a/service/collector.go b/service/collector.go index 9bd94fcb7d2..06b7ab879ce 100644 --- a/service/collector.go +++ b/service/collector.go @@ -25,7 +25,6 @@ import ( "runtime" "syscall" - "go.opentelemetry.io/contrib/zpages" "go.opentelemetry.io/otel/metric/nonrecording" sdktrace "go.opentelemetry.io/otel/sdk/trace" "go.opentelemetry.io/otel/trace" @@ -76,9 +75,8 @@ func (s State) String() string { // Collector represents a server providing the OpenTelemetry Collector service. type Collector struct { - set CollectorSettings - telemetry component.TelemetrySettings - zPagesSpanProcessor *zpages.SpanProcessor + set CollectorSettings + telemetry component.TelemetrySettings service *service state *atomic.Int32 @@ -210,12 +208,11 @@ func (col *Collector) setupConfigurationComponents(ctx context.Context) error { } col.service, err = newService(&svcSettings{ - BuildInfo: col.set.BuildInfo, - Factories: col.set.Factories, - Config: cfg, - Telemetry: col.telemetry, - ZPagesSpanProcessor: col.zPagesSpanProcessor, - AsyncErrorChannel: col.asyncErrorChannel, + BuildInfo: col.set.BuildInfo, + Factories: col.set.Factories, + Config: cfg, + Telemetry: col.telemetry, + AsyncErrorChannel: col.asyncErrorChannel, }) if err != nil { return err @@ -238,10 +235,10 @@ func (col *Collector) setupConfigurationComponents(ctx context.Context) error { // Run starts the collector according to the given configuration given, and waits for it to complete. // Consecutive calls to Run are not allowed, Run shouldn't be called once a collector is shut down. func (col *Collector) Run(ctx context.Context) error { - col.zPagesSpanProcessor = zpages.NewSpanProcessor() col.telemetry.TracerProvider = sdktrace.NewTracerProvider( + // needed for supporting the zpages extension sdktrace.WithSampler(internal.AlwaysRecord()), - sdktrace.WithSpanProcessor(col.zPagesSpanProcessor)) + ) if err := col.setupConfigurationComponents(ctx); err != nil { col.setCollectorState(Closed) diff --git a/service/host.go b/service/host.go index 5767b7e4b63..58d92f3be48 100644 --- a/service/host.go +++ b/service/host.go @@ -15,8 +15,6 @@ package service // import "go.opentelemetry.io/collector/service" import ( - "go.opentelemetry.io/contrib/zpages" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/service/internal/builder" @@ -26,9 +24,8 @@ import ( var _ component.Host = (*serviceHost)(nil) type serviceHost struct { - asyncErrorChannel chan error - factories component.Factories - zPagesSpanProcessor *zpages.SpanProcessor + asyncErrorChannel chan error + factories component.Factories builtExporters builder.Exporters builtReceivers builder.Receivers diff --git a/service/service.go b/service/service.go index 986e6daa835..9df7477674d 100644 --- a/service/service.go +++ b/service/service.go @@ -40,9 +40,8 @@ func newService(set *svcSettings) (*service, error) { config: set.Config, telemetry: set.Telemetry, host: &serviceHost{ - factories: set.Factories, - zPagesSpanProcessor: set.ZPagesSpanProcessor, - asyncErrorChannel: set.AsyncErrorChannel, + factories: set.Factories, + asyncErrorChannel: set.AsyncErrorChannel, }, } diff --git a/service/settings.go b/service/settings.go index a634d648908..9b70ac53c2e 100644 --- a/service/settings.go +++ b/service/settings.go @@ -15,7 +15,6 @@ package service // import "go.opentelemetry.io/collector/service" import ( - "go.opentelemetry.io/contrib/zpages" "go.uber.org/zap" "go.opentelemetry.io/collector/component" @@ -36,9 +35,6 @@ type svcSettings struct { // Telemetry represents the service configured telemetry for all the components. Telemetry component.TelemetrySettings - // ZPagesSpanProcessor represents the SpanProcessor for tracez page. - ZPagesSpanProcessor *zpages.SpanProcessor - // AsyncErrorChannel is the channel that is used to report fatal errors. AsyncErrorChannel chan error } diff --git a/service/zpages.go b/service/zpages.go index a0164fa4b73..8b315b442fc 100644 --- a/service/zpages.go +++ b/service/zpages.go @@ -19,8 +19,6 @@ import ( "path" "sort" - otelzpages "go.opentelemetry.io/contrib/zpages" - "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/internal/version" "go.opentelemetry.io/collector/service/featuregate" @@ -28,7 +26,6 @@ import ( ) const ( - tracezPath = "tracez" servicezPath = "servicez" pipelinezPath = "pipelinez" extensionzPath = "extensionz" @@ -41,7 +38,6 @@ const ( ) func (host *serviceHost) RegisterZPages(mux *http.ServeMux, pathPrefix string) { - mux.Handle(path.Join(pathPrefix, tracezPath), otelzpages.NewTracezHandler(host.zPagesSpanProcessor)) mux.HandleFunc(path.Join(pathPrefix, servicezPath), host.handleServicezRequest) mux.HandleFunc(path.Join(pathPrefix, pipelinezPath), host.handlePipelinezRequest) mux.HandleFunc(path.Join(pathPrefix, featurezPath), handleFeaturezRequest) From a90d21930ab0c64690811cf353726cba4cb244d8 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 12 May 2022 15:39:43 -0700 Subject: [PATCH 30/67] Remove derecated featuregate funcs/structs from v0.50.0 (#5346) Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 1 + service/featuregate/gates.go | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6ef2e62feb..5dc75fd8c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Remove `configunmarshaler.Unmarshaler` interface, per deprecation comment )#5348) - Remove deprecated pdata funcs/structs from v0.50.0 (#5345) +- Remove derecated featuregate funcs/structs from v0.50.0 (#5346) ### 🚩 Deprecations 🚩 diff --git a/service/featuregate/gates.go b/service/featuregate/gates.go index 68869aac897..3cde777de5b 100644 --- a/service/featuregate/gates.go +++ b/service/featuregate/gates.go @@ -34,18 +34,6 @@ func GetRegistry() *Registry { return reg } -// Deprecated: [v0.50.0] Use GetRegistry().Apply. -var Apply = GetRegistry().Apply - -// Deprecated: [v0.50.0] Use GetRegistry().IsEnabled. -var IsEnabled = GetRegistry().IsEnabled - -// Deprecated: [v0.50.0] Use GetRegistry().List. -var List = GetRegistry().List - -// Deprecated: [v0.50.0] Use GetRegistry().MustRegister. -var Register = GetRegistry().MustRegister - // NewRegistry returns a new empty Registry. func NewRegistry() *Registry { return &Registry{gates: make(map[string]Gate)} From c77f9e1d06480d8619183c695e0a025206cb4010 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Thu, 12 May 2022 21:02:40 -0700 Subject: [PATCH 31/67] Enable unused linter, add allow-parrallel-runs as config (#5359) Signed-off-by: Bogdan Drutu --- .golangci.yml | 10 +++++----- Makefile.Common | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 3325676cef6..64583c1460f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -38,6 +38,10 @@ run: # the dependency descriptions in go.mod. modules-download-mode: readonly + # Allow multiple parallel golangci-lint instances running. + # If false (default) - golangci-lint acquires file lock on start. + allow-parallel-runners: true + # output configuration options output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" @@ -116,16 +120,12 @@ linters: - revive - staticcheck - unconvert + - unused - unparam issues: # Excluding configuration per-path, per-linter, per-text and per-source exclude-rules: - # Exclude some linters from running on tests files. - - path: otlp_test.go - linters: - # See https://github.com/golangci/golangci-lint/issues/537#issuecomment-545170007 - - structcheck - text: "G404:" linters: - gosec diff --git a/Makefile.Common b/Makefile.Common index 1b3b4e567a8..70cfe2f2a51 100644 --- a/Makefile.Common +++ b/Makefile.Common @@ -38,11 +38,11 @@ tidy: .PHONY: lint lint: - $(LINT) run --allow-parallel-runners + $(LINT) run .PHONY: lint-unstable lint-unstable: - $(LINT) run --allow-parallel-runners --build-tags enable_unstable + $(LINT) run --build-tags enable_unstable .PHONY: generate generate: From 8cf2c7a61352a47ce61f46e6f8d923c4098cd169 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Fri, 13 May 2022 07:43:40 -0700 Subject: [PATCH 32/67] [otlp] update proto to v0.17.0 (#5335) * [otlp] update proto to v0.17.0 Fixes #5334 * update changelog --- CHANGELOG.md | 2 + Makefile | 2 +- .../data/protogen/metrics/v1/metrics.pb.go | 494 ++++++++++++++---- 3 files changed, 402 insertions(+), 96 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dc75fd8c91..e4b573d4750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ ### 💡 Enhancements 💡 +- Update OTLP to v0.17.0 (#5335) + ### 🧰 Bug fixes 🧰 ## v0.51.0 Beta diff --git a/Makefile b/Makefile index a27ed4f412c..6358b1190bf 100644 --- a/Makefile +++ b/Makefile @@ -229,7 +229,7 @@ gendependabot: $(eval SHELL:=/bin/bash) OPENTELEMETRY_PROTO_SRC_DIR=pdata/internal/opentelemetry-proto # The SHA matching the current version of the proto to use -OPENTELEMETRY_PROTO_VERSION=v0.16.0 +OPENTELEMETRY_PROTO_VERSION=v0.17.0 # Find all .proto files. OPENTELEMETRY_PROTO_FILES := $(subst $(OPENTELEMETRY_PROTO_SRC_DIR)/,,$(wildcard $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/*/v1/*.proto $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/collector/*/v1/*.proto)) diff --git a/pdata/internal/data/protogen/metrics/v1/metrics.pb.go b/pdata/internal/data/protogen/metrics/v1/metrics.pb.go index a71050963bf..8abc16f76c0 100644 --- a/pdata/internal/data/protogen/metrics/v1/metrics.pb.go +++ b/pdata/internal/data/protogen/metrics/v1/metrics.pb.go @@ -1192,6 +1192,16 @@ type HistogramDataPoint struct { // Flags that apply to this specific data point. See DataPointFlags // for the available flags and their meaning. Flags uint32 `protobuf:"varint,10,opt,name=flags,proto3" json:"flags,omitempty"` + // min is the minimum value over (start_time, end_time]. + // + // Types that are valid to be assigned to Min_: + // *HistogramDataPoint_Min + Min_ isHistogramDataPoint_Min_ `protobuf_oneof:"min_"` + // max is the maximum value over (start_time, end_time]. + // + // Types that are valid to be assigned to Max_: + // *HistogramDataPoint_Max + Max_ isHistogramDataPoint_Max_ `protobuf_oneof:"max_"` } func (m *HistogramDataPoint) Reset() { *m = HistogramDataPoint{} } @@ -1232,12 +1242,30 @@ type isHistogramDataPoint_Sum_ interface { MarshalTo([]byte) (int, error) Size() int } +type isHistogramDataPoint_Min_ interface { + isHistogramDataPoint_Min_() + MarshalTo([]byte) (int, error) + Size() int +} +type isHistogramDataPoint_Max_ interface { + isHistogramDataPoint_Max_() + MarshalTo([]byte) (int, error) + Size() int +} type HistogramDataPoint_Sum struct { Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3,oneof" json:"sum,omitempty"` } +type HistogramDataPoint_Min struct { + Min float64 `protobuf:"fixed64,11,opt,name=min,proto3,oneof" json:"min,omitempty"` +} +type HistogramDataPoint_Max struct { + Max float64 `protobuf:"fixed64,12,opt,name=max,proto3,oneof" json:"max,omitempty"` +} func (*HistogramDataPoint_Sum) isHistogramDataPoint_Sum_() {} +func (*HistogramDataPoint_Min) isHistogramDataPoint_Min_() {} +func (*HistogramDataPoint_Max) isHistogramDataPoint_Max_() {} func (m *HistogramDataPoint) GetSum_() isHistogramDataPoint_Sum_ { if m != nil { @@ -1245,6 +1273,18 @@ func (m *HistogramDataPoint) GetSum_() isHistogramDataPoint_Sum_ { } return nil } +func (m *HistogramDataPoint) GetMin_() isHistogramDataPoint_Min_ { + if m != nil { + return m.Min_ + } + return nil +} +func (m *HistogramDataPoint) GetMax_() isHistogramDataPoint_Max_ { + if m != nil { + return m.Max_ + } + return nil +} func (m *HistogramDataPoint) GetAttributes() []v11.KeyValue { if m != nil { @@ -1309,10 +1349,26 @@ func (m *HistogramDataPoint) GetFlags() uint32 { return 0 } +func (m *HistogramDataPoint) GetMin() float64 { + if x, ok := m.GetMin_().(*HistogramDataPoint_Min); ok { + return x.Min + } + return 0 +} + +func (m *HistogramDataPoint) GetMax() float64 { + if x, ok := m.GetMax_().(*HistogramDataPoint_Max); ok { + return x.Max + } + return 0 +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*HistogramDataPoint) XXX_OneofWrappers() []interface{} { return []interface{}{ (*HistogramDataPoint_Sum)(nil), + (*HistogramDataPoint_Min)(nil), + (*HistogramDataPoint_Max)(nil), } } @@ -1386,6 +1442,16 @@ type ExponentialHistogramDataPoint struct { // (Optional) List of exemplars collected from // measurements that were used to form the data point Exemplars []Exemplar `protobuf:"bytes,11,rep,name=exemplars,proto3" json:"exemplars"` + // min is the minimum value over (start_time, end_time]. + // + // Types that are valid to be assigned to Min_: + // *ExponentialHistogramDataPoint_Min + Min_ isExponentialHistogramDataPoint_Min_ `protobuf_oneof:"min_"` + // max is the maximum value over (start_time, end_time]. + // + // Types that are valid to be assigned to Max_: + // *ExponentialHistogramDataPoint_Max + Max_ isExponentialHistogramDataPoint_Max_ `protobuf_oneof:"max_"` } func (m *ExponentialHistogramDataPoint) Reset() { *m = ExponentialHistogramDataPoint{} } @@ -1421,6 +1487,40 @@ func (m *ExponentialHistogramDataPoint) XXX_DiscardUnknown() { var xxx_messageInfo_ExponentialHistogramDataPoint proto.InternalMessageInfo +type isExponentialHistogramDataPoint_Min_ interface { + isExponentialHistogramDataPoint_Min_() + MarshalTo([]byte) (int, error) + Size() int +} +type isExponentialHistogramDataPoint_Max_ interface { + isExponentialHistogramDataPoint_Max_() + MarshalTo([]byte) (int, error) + Size() int +} + +type ExponentialHistogramDataPoint_Min struct { + Min float64 `protobuf:"fixed64,12,opt,name=min,proto3,oneof" json:"min,omitempty"` +} +type ExponentialHistogramDataPoint_Max struct { + Max float64 `protobuf:"fixed64,13,opt,name=max,proto3,oneof" json:"max,omitempty"` +} + +func (*ExponentialHistogramDataPoint_Min) isExponentialHistogramDataPoint_Min_() {} +func (*ExponentialHistogramDataPoint_Max) isExponentialHistogramDataPoint_Max_() {} + +func (m *ExponentialHistogramDataPoint) GetMin_() isExponentialHistogramDataPoint_Min_ { + if m != nil { + return m.Min_ + } + return nil +} +func (m *ExponentialHistogramDataPoint) GetMax_() isExponentialHistogramDataPoint_Max_ { + if m != nil { + return m.Max_ + } + return nil +} + func (m *ExponentialHistogramDataPoint) GetAttributes() []v11.KeyValue { if m != nil { return m.Attributes @@ -1498,6 +1598,28 @@ func (m *ExponentialHistogramDataPoint) GetExemplars() []Exemplar { return nil } +func (m *ExponentialHistogramDataPoint) GetMin() float64 { + if x, ok := m.GetMin_().(*ExponentialHistogramDataPoint_Min); ok { + return x.Min + } + return 0 +} + +func (m *ExponentialHistogramDataPoint) GetMax() float64 { + if x, ok := m.GetMax_().(*ExponentialHistogramDataPoint_Max); ok { + return x.Max + } + return 0 +} + +// XXX_OneofWrappers is for the internal use of the proto package. +func (*ExponentialHistogramDataPoint) XXX_OneofWrappers() []interface{} { + return []interface{}{ + (*ExponentialHistogramDataPoint_Min)(nil), + (*ExponentialHistogramDataPoint_Max)(nil), + } +} + // Buckets are a set of bucket counts, encoded in a contiguous array // of counts. type ExponentialHistogramDataPoint_Buckets struct { @@ -1900,101 +2022,103 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 1490 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x5b, 0x6f, 0x1b, 0x45, - 0x14, 0xf6, 0xfa, 0xee, 0xe3, 0x5c, 0xdc, 0x21, 0xa4, 0x56, 0xa4, 0xa4, 0xae, 0x0b, 0x4d, 0xa8, - 0x2a, 0x9b, 0xa6, 0xdc, 0x51, 0xa5, 0xda, 0xb1, 0x93, 0x38, 0xcd, 0xad, 0x13, 0xa7, 0x52, 0xab, - 0xaa, 0xab, 0x89, 0x3d, 0x71, 0x47, 0xdd, 0xdd, 0x31, 0xbb, 0xb3, 0x51, 0xc2, 0x4f, 0x40, 0x3c, - 0x54, 0xfc, 0x02, 0x1e, 0x78, 0xe4, 0x47, 0xf0, 0xd8, 0xc7, 0xf2, 0x86, 0x90, 0xa8, 0x20, 0x7d, - 0x00, 0x89, 0x7f, 0xc0, 0x13, 0x9a, 0xd9, 0xdd, 0xf8, 0x12, 0x27, 0x4e, 0x68, 0x91, 0xda, 0xb7, - 0x99, 0xb3, 0xdf, 0xf9, 0xce, 0x75, 0xce, 0x8c, 0x0d, 0xd7, 0x79, 0x9b, 0x5a, 0x82, 0x1a, 0xd4, - 0xa4, 0xc2, 0x3e, 0x28, 0xb6, 0x6d, 0x2e, 0x78, 0x51, 0xae, 0x59, 0xc3, 0x29, 0xee, 0xdd, 0x08, - 0x96, 0x05, 0xf5, 0x01, 0xcd, 0xf4, 0xa0, 0x3d, 0x61, 0x21, 0x80, 0xec, 0xdd, 0x98, 0x9a, 0x68, - 0xf1, 0x16, 0xf7, 0x38, 0xe4, 0xca, 0x03, 0x4c, 0x5d, 0x1b, 0x64, 0xa3, 0xc1, 0x4d, 0x93, 0x5b, - 0xd2, 0x84, 0xb7, 0xf2, 0xb1, 0x85, 0x41, 0x58, 0x9b, 0x3a, 0xdc, 0xb5, 0x1b, 0x54, 0xa2, 0x83, - 0xb5, 0x87, 0xcf, 0x33, 0x48, 0xaf, 0x79, 0xf6, 0x2b, 0x44, 0x10, 0xf4, 0x00, 0x32, 0x01, 0x40, - 0xf7, 0xfd, 0xca, 0x6a, 0xb9, 0xc8, 0x5c, 0x7a, 0xbe, 0x58, 0x38, 0xdd, 0xf7, 0x02, 0xf6, 0xf5, - 0x7c, 0x3a, 0x3c, 0x6e, 0xf7, 0x0a, 0xf2, 0xbf, 0x85, 0x61, 0xbc, 0x0f, 0x84, 0xee, 0x40, 0x32, - 0x80, 0x65, 0xb5, 0x9c, 0x36, 0x97, 0x9e, 0xff, 0x60, 0xa0, 0x9d, 0x23, 0xaf, 0xbb, 0x0c, 0x95, - 0xa3, 0xcf, 0x5e, 0x5c, 0x0a, 0xe1, 0x23, 0x02, 0x74, 0x17, 0x46, 0x9d, 0x06, 0x6f, 0x77, 0x3c, - 0x0f, 0x2b, 0xcf, 0xaf, 0x0f, 0xf3, 0x7c, 0x4b, 0x2a, 0x05, 0x6e, 0x8f, 0x38, 0x5d, 0x3b, 0xf4, - 0x8d, 0x06, 0x97, 0x98, 0xe5, 0x08, 0xdb, 0x35, 0xa9, 0x25, 0x88, 0x60, 0xdc, 0xd2, 0x0d, 0xb6, - 0x63, 0x13, 0xfb, 0xe0, 0xc8, 0xca, 0x5f, 0x09, 0x65, 0xe6, 0xd6, 0x30, 0x33, 0xb5, 0x5e, 0x9e, - 0x55, 0x8f, 0xc6, 0xb7, 0x54, 0x0e, 0x67, 0x35, 0x3c, 0xcd, 0x4e, 0x83, 0xa0, 0x69, 0x00, 0xa7, - 0xf1, 0x98, 0x9a, 0x44, 0x77, 0x6d, 0x23, 0x1b, 0xc9, 0x69, 0x73, 0x29, 0x9c, 0xf2, 0x24, 0xdb, - 0xb6, 0x91, 0xff, 0x49, 0x83, 0x91, 0xee, 0x50, 0xd0, 0x06, 0xc4, 0x54, 0x30, 0x7e, 0x66, 0x6f, - 0x0e, 0x74, 0xd0, 0xef, 0x9e, 0xe3, 0xfe, 0x29, 0x2a, 0x3f, 0xc7, 0x1e, 0x0f, 0xba, 0x0d, 0x89, - 0xde, 0xd4, 0x5e, 0x1d, 0x16, 0xb3, 0xe7, 0x0a, 0x0e, 0xd4, 0x86, 0x85, 0xf0, 0x8f, 0x06, 0xd3, - 0xa7, 0xa6, 0x09, 0x09, 0xb8, 0x78, 0x42, 0x3d, 0xfc, 0x28, 0x3f, 0x3e, 0x5f, 0x94, 0x3e, 0xbd, - 0x1f, 0xe7, 0xe4, 0xe0, 0x02, 0xfc, 0xef, 0x81, 0x7f, 0x11, 0xce, 0x6a, 0xf9, 0x3f, 0x22, 0x10, - 0xf7, 0xd4, 0x10, 0x82, 0xa8, 0x45, 0x4c, 0xaf, 0x70, 0x29, 0xac, 0xd6, 0x28, 0x07, 0xe9, 0x26, - 0x75, 0x1a, 0x36, 0x6b, 0x4b, 0xcf, 0xb2, 0x61, 0xf5, 0xa9, 0x5b, 0x24, 0xb5, 0x5c, 0x8b, 0x09, - 0x9f, 0x5d, 0xad, 0xd1, 0x2d, 0x88, 0xb5, 0x88, 0xdb, 0xa2, 0xd9, 0x98, 0xca, 0xce, 0xfb, 0xc3, - 0xfc, 0x5e, 0x92, 0xe0, 0xe5, 0x10, 0xf6, 0xb4, 0xd0, 0xa7, 0x10, 0x71, 0x5c, 0x33, 0x9b, 0x50, - 0xca, 0x57, 0x86, 0x1e, 0x24, 0xd7, 0x5c, 0x0e, 0x61, 0xa9, 0x81, 0x6a, 0x90, 0x7a, 0xcc, 0x1c, - 0xc1, 0x5b, 0x36, 0x31, 0xb3, 0xa9, 0x53, 0x4e, 0x76, 0x97, 0xfa, 0x72, 0xa0, 0xb0, 0x1c, 0xc2, - 0x1d, 0x6d, 0xf4, 0x04, 0xde, 0xa5, 0xfb, 0x6d, 0x6e, 0x51, 0x4b, 0x30, 0x62, 0xe8, 0x1d, 0x5a, - 0x50, 0xb4, 0x1f, 0x0d, 0xa3, 0xad, 0x76, 0x94, 0xbb, 0x2d, 0x4c, 0xd0, 0x01, 0x72, 0xb4, 0x00, - 0x09, 0xc7, 0x35, 0x4d, 0xd9, 0x4f, 0x69, 0x45, 0x3f, 0x7b, 0x86, 0xa0, 0x25, 0x7c, 0x39, 0x84, - 0x03, 0xcd, 0x72, 0x1c, 0xa2, 0x4d, 0x22, 0xc8, 0x4a, 0x34, 0x19, 0xcd, 0xc4, 0x56, 0xa2, 0xc9, - 0x78, 0x26, 0xb1, 0x12, 0x4d, 0x26, 0x33, 0xa9, 0xfc, 0x7d, 0x88, 0xa9, 0x0c, 0xa3, 0x4d, 0x48, - 0x4b, 0x88, 0xde, 0xe6, 0xcc, 0x12, 0x67, 0x9e, 0xb1, 0xeb, 0xae, 0xb9, 0x43, 0x6d, 0x39, 0xa9, - 0x37, 0xa5, 0x1e, 0x86, 0x66, 0xb0, 0x74, 0xf2, 0x7f, 0x6b, 0x10, 0xd9, 0x72, 0xcd, 0xd7, 0xcf, - 0x8c, 0x38, 0x5c, 0x24, 0xad, 0x96, 0x4d, 0x5b, 0xde, 0x79, 0x13, 0xd4, 0x6c, 0x73, 0x9b, 0x18, - 0x4c, 0x1c, 0xa8, 0x2e, 0x1c, 0x9b, 0xff, 0x64, 0x18, 0x7b, 0xa9, 0xa3, 0x5e, 0xef, 0x68, 0xe3, - 0x49, 0x32, 0x50, 0x8e, 0x2e, 0xc3, 0x08, 0x73, 0x74, 0x93, 0x5b, 0x5c, 0x70, 0x8b, 0x35, 0x54, - 0x43, 0x27, 0x71, 0x9a, 0x39, 0x6b, 0x81, 0x28, 0xff, 0xb3, 0x06, 0xa9, 0x4e, 0xd5, 0xb6, 0x06, - 0xc5, 0x3c, 0x7f, 0xe6, 0x7e, 0x7b, 0x33, 0xc2, 0xce, 0xff, 0xa9, 0xc1, 0xc4, 0xa0, 0x66, 0x45, - 0x8f, 0x06, 0x85, 0x77, 0xeb, 0xbf, 0xf4, 0xfd, 0x1b, 0x12, 0xe9, 0x43, 0x48, 0xf8, 0xc7, 0x06, - 0xdd, 0x1d, 0x14, 0xdb, 0x87, 0x67, 0x3c, 0x74, 0x83, 0x4f, 0xc2, 0x61, 0x18, 0xc6, 0xfb, 0xfa, - 0x19, 0xad, 0x01, 0x10, 0x21, 0x6c, 0xb6, 0xe3, 0x0a, 0xea, 0x64, 0xbd, 0x1b, 0x7b, 0x76, 0xc8, - 0x55, 0x71, 0x87, 0x1e, 0xdc, 0x23, 0x86, 0x1b, 0x5c, 0x82, 0x5d, 0x04, 0xa8, 0x08, 0x13, 0x8e, - 0x20, 0xb6, 0xd0, 0x05, 0x33, 0xa9, 0xee, 0x5a, 0x6c, 0x5f, 0xb7, 0x88, 0xc5, 0x55, 0xba, 0xe2, - 0xf8, 0x82, 0xfa, 0x56, 0x67, 0x26, 0xdd, 0xb6, 0xd8, 0xfe, 0x3a, 0xb1, 0x38, 0x7a, 0x0f, 0xc6, - 0xfa, 0xa0, 0x11, 0x05, 0x1d, 0x11, 0xdd, 0xa8, 0x69, 0x48, 0x11, 0x47, 0x6f, 0x72, 0x77, 0xc7, - 0xa0, 0xd9, 0x68, 0x4e, 0x9b, 0xd3, 0x96, 0x43, 0x38, 0x49, 0x9c, 0x8a, 0x92, 0xa0, 0x8b, 0x10, - 0x27, 0x8e, 0xce, 0x2c, 0x91, 0x8d, 0xe7, 0xb4, 0xb9, 0x8c, 0x1c, 0xd3, 0xc4, 0xa9, 0x59, 0x02, - 0xad, 0x42, 0x8a, 0xee, 0x53, 0xb3, 0x6d, 0x10, 0xdb, 0xc9, 0xc6, 0x54, 0x70, 0x73, 0xc3, 0xdb, - 0xc3, 0x53, 0xf0, 0xa3, 0xeb, 0x10, 0xa0, 0x09, 0x88, 0xed, 0x1a, 0xa4, 0xe5, 0x64, 0x93, 0x39, - 0x6d, 0x6e, 0x14, 0x7b, 0x9b, 0x72, 0x02, 0x62, 0x7b, 0x32, 0x1b, 0x2b, 0xd1, 0xa4, 0x96, 0x09, - 0xe7, 0x7f, 0x88, 0x00, 0x3a, 0xde, 0x56, 0x7d, 0x79, 0x4e, 0xbd, 0xa1, 0x79, 0x9e, 0x80, 0x58, - 0x83, 0xbb, 0x96, 0x50, 0x39, 0x8e, 0x63, 0x6f, 0x83, 0x90, 0x77, 0xd9, 0xc5, 0xfc, 0xbc, 0xab, - 0x7b, 0xec, 0x0a, 0x8c, 0xee, 0xb8, 0x8d, 0x27, 0x54, 0xe8, 0x0a, 0xe3, 0x64, 0xe3, 0xb9, 0x88, - 0xa4, 0xf3, 0x84, 0x0b, 0x4a, 0x86, 0x66, 0x61, 0x9c, 0xee, 0xb7, 0x0d, 0xd6, 0x60, 0x42, 0xdf, - 0xe1, 0xae, 0xd5, 0xf4, 0x3a, 0x4c, 0xc3, 0x63, 0x81, 0xb8, 0xac, 0xa4, 0xbd, 0x75, 0x4a, 0xbe, - 0xb6, 0x3a, 0x41, 0x77, 0x9d, 0xe2, 0x10, 0x75, 0x5c, 0x53, 0xf7, 0xcb, 0xf4, 0x7d, 0x0c, 0xa6, - 0x4f, 0x1d, 0x04, 0x7d, 0x15, 0xd3, 0xde, 0xaa, 0x8a, 0x65, 0xba, 0x2a, 0xe6, 0xd5, 0x6b, 0x42, - 0xbe, 0x79, 0x89, 0x41, 0xd5, 0x09, 0xb9, 0x80, 0xbd, 0x8d, 0x7c, 0x7d, 0x7d, 0x4d, 0x6d, 0xee, - 0xd5, 0x50, 0xbd, 0x66, 0xe2, 0x38, 0x25, 0x25, 0xaa, 0x80, 0xa8, 0x05, 0xc9, 0x36, 0x77, 0x98, - 0x60, 0x7b, 0x54, 0xf5, 0x7c, 0x7a, 0xbe, 0xfa, 0x4a, 0xc3, 0xb5, 0x50, 0x56, 0xdd, 0xe1, 0x04, - 0xbf, 0x50, 0x02, 0x72, 0x69, 0xc8, 0x52, 0xe3, 0x70, 0x8f, 0xfa, 0x8f, 0xa2, 0xd7, 0x6b, 0x28, - 0x20, 0x1f, 0xdc, 0x1a, 0xbd, 0xed, 0x97, 0x7e, 0xc5, 0xf6, 0x9b, 0x5a, 0x84, 0x84, 0x6f, 0x1e, - 0x4d, 0x42, 0x9c, 0xef, 0xee, 0x3a, 0x54, 0xa8, 0x17, 0xeb, 0x05, 0xec, 0xef, 0x8e, 0x9f, 0x1e, - 0xf9, 0x7a, 0x8e, 0xf6, 0x9e, 0x9e, 0xfc, 0x8f, 0x11, 0xc8, 0xf4, 0xcf, 0xf3, 0xb7, 0x64, 0x5e, - 0x9f, 0xb5, 0x2b, 0x19, 0x8c, 0x7f, 0xe5, 0x12, 0x4b, 0x30, 0x83, 0xea, 0x6a, 0x88, 0x7a, 0x73, - 0x24, 0x3d, 0x7f, 0xfb, 0xbc, 0x17, 0x5d, 0x41, 0x45, 0x58, 0x12, 0x77, 0x7d, 0x3a, 0x3c, 0x16, - 0x10, 0xab, 0x0f, 0x27, 0x0c, 0xef, 0xa9, 0x05, 0x18, 0xef, 0x53, 0x44, 0x53, 0x90, 0x0c, 0x54, - 0x55, 0xd5, 0x34, 0x7c, 0xb4, 0x97, 0x24, 0xca, 0x4d, 0x95, 0x1f, 0x0d, 0xf7, 0x0c, 0xfe, 0xa7, - 0x11, 0x48, 0x06, 0x4d, 0x81, 0x1e, 0xc1, 0x3b, 0xbb, 0xcc, 0x10, 0xd4, 0xa6, 0x4d, 0xfd, 0x55, - 0xeb, 0x85, 0x02, 0xa6, 0x52, 0xa7, 0x6e, 0xc7, 0xcb, 0x10, 0x1e, 0x76, 0x6d, 0x46, 0xce, 0x7e, - 0x6d, 0xde, 0x87, 0x84, 0xd3, 0x26, 0x96, 0xce, 0x9a, 0xaa, 0x80, 0x23, 0xe5, 0xdb, 0xd2, 0x91, - 0x5f, 0x5f, 0x5c, 0xfa, 0xac, 0xc5, 0xfb, 0x7c, 0x67, 0xbc, 0xd8, 0xe0, 0x86, 0x41, 0x1b, 0x82, - 0xdb, 0xc5, 0xb6, 0x7c, 0x6c, 0x14, 0x99, 0x25, 0xa8, 0x6d, 0x11, 0xa3, 0x28, 0x77, 0x85, 0xad, - 0x36, 0xb1, 0x6a, 0x15, 0x1c, 0x97, 0x84, 0xb5, 0x26, 0x7a, 0x08, 0x49, 0x61, 0x93, 0x06, 0x95, - 0xdc, 0x31, 0xc5, 0x5d, 0xf2, 0xb9, 0x3f, 0x3f, 0x3f, 0x77, 0x5d, 0x32, 0xd5, 0x2a, 0x38, 0xa1, - 0x28, 0x6b, 0xcd, 0xbe, 0xbb, 0xf8, 0xda, 0xb7, 0x1a, 0x4c, 0x0e, 0x7e, 0x81, 0xa1, 0x59, 0xb8, - 0x52, 0x5a, 0x5a, 0xc2, 0xd5, 0xa5, 0x52, 0xbd, 0xb6, 0xb1, 0xae, 0xd7, 0xab, 0x6b, 0x9b, 0x1b, - 0xb8, 0xb4, 0x5a, 0xab, 0xdf, 0xd7, 0xb7, 0xd7, 0xb7, 0x36, 0xab, 0x0b, 0xb5, 0xc5, 0x5a, 0xb5, - 0x92, 0x09, 0xa1, 0xcb, 0x30, 0x7d, 0x12, 0xb0, 0x52, 0x5d, 0xad, 0x97, 0x32, 0x1a, 0xba, 0x0a, - 0xf9, 0x93, 0x20, 0x0b, 0xdb, 0x6b, 0xdb, 0xab, 0xa5, 0x7a, 0xed, 0x5e, 0x35, 0x13, 0xbe, 0xf6, - 0x25, 0x8c, 0x1d, 0xf5, 0xeb, 0xa2, 0x1a, 0x3c, 0xa3, 0x90, 0x5a, 0x5c, 0x2d, 0x2d, 0xe9, 0xeb, - 0x1b, 0xeb, 0xd5, 0x4c, 0x08, 0x4d, 0xc1, 0xa4, 0xbf, 0xd5, 0x71, 0x75, 0x61, 0x03, 0x57, 0xaa, - 0x15, 0xfd, 0x5e, 0x69, 0x75, 0xbb, 0x9a, 0xd1, 0xca, 0xdf, 0x69, 0xcf, 0x0e, 0x67, 0xb4, 0xe7, - 0x87, 0x33, 0xda, 0xef, 0x87, 0x33, 0xda, 0xd3, 0x97, 0x33, 0xa1, 0xe7, 0x2f, 0x67, 0x42, 0xbf, - 0xbc, 0x9c, 0x09, 0xc1, 0x65, 0xc6, 0x87, 0x1c, 0x97, 0xf2, 0x88, 0xff, 0x3f, 0xc1, 0xa6, 0xfc, - 0xb0, 0xa9, 0x3d, 0xa8, 0x9e, 0x3b, 0xd9, 0xde, 0x5f, 0x66, 0x2d, 0x6a, 0x75, 0xfd, 0x8b, 0xb7, - 0x13, 0x57, 0xc2, 0x9b, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xed, 0xa7, 0xdb, 0xbe, 0xee, 0x13, - 0x00, 0x00, + // 1531 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x5b, 0x6f, 0x13, 0x47, + 0x14, 0xf6, 0xfa, 0xee, 0x63, 0x27, 0x31, 0xd3, 0x34, 0xac, 0x22, 0x25, 0x18, 0xd3, 0x92, 0x14, + 0x21, 0xbb, 0x84, 0xde, 0x2b, 0x24, 0xec, 0xd8, 0x49, 0x1c, 0x72, 0x63, 0xe2, 0x20, 0x81, 0x10, + 0xab, 0x89, 0x3d, 0x31, 0x23, 0xf6, 0xe2, 0xee, 0xce, 0x46, 0x4e, 0x7f, 0x42, 0xd5, 0x07, 0xd4, + 0xdf, 0xd1, 0x1f, 0xd1, 0x47, 0x1e, 0xe9, 0x1b, 0xaa, 0x5a, 0xd4, 0x86, 0x87, 0x56, 0xea, 0x3f, + 0xe8, 0x53, 0x35, 0xb3, 0xbb, 0xf1, 0x25, 0x4e, 0x9c, 0x14, 0x2a, 0xc1, 0x93, 0x67, 0xce, 0x9c, + 0xf3, 0x9d, 0xfb, 0x9c, 0xf1, 0xc2, 0x75, 0xab, 0x4d, 0x4d, 0x4e, 0x75, 0x6a, 0x50, 0x6e, 0x1f, + 0x14, 0xdb, 0xb6, 0xc5, 0xad, 0xa2, 0x58, 0xb3, 0x86, 0x53, 0xdc, 0xbf, 0x11, 0x2c, 0x0b, 0xf2, + 0x00, 0xcd, 0xf6, 0x71, 0x7b, 0xc4, 0x42, 0xc0, 0xb2, 0x7f, 0x63, 0x7a, 0xb2, 0x65, 0xb5, 0x2c, + 0x0f, 0x43, 0xac, 0x3c, 0x86, 0xe9, 0x6b, 0xc3, 0x74, 0x34, 0x2c, 0xc3, 0xb0, 0x4c, 0xa1, 0xc2, + 0x5b, 0xf9, 0xbc, 0x85, 0x61, 0xbc, 0x36, 0x75, 0x2c, 0xd7, 0x6e, 0x50, 0xc1, 0x1d, 0xac, 0x3d, + 0xfe, 0x3c, 0x83, 0xf4, 0xba, 0xa7, 0xbf, 0x42, 0x38, 0x41, 0x0f, 0x20, 0x1b, 0x30, 0x68, 0xbe, + 0x5d, 0xaa, 0x92, 0x8b, 0xcc, 0xa7, 0x17, 0x8a, 0x85, 0xd3, 0x6d, 0x2f, 0x60, 0x5f, 0xce, 0x87, + 0xc3, 0x13, 0x76, 0x3f, 0x21, 0xff, 0x5b, 0x18, 0x26, 0x06, 0x98, 0xd0, 0x1d, 0x48, 0x06, 0x6c, + 0xaa, 0x92, 0x53, 0xe6, 0xd3, 0x0b, 0x1f, 0x0d, 0xd5, 0x73, 0x64, 0x75, 0x8f, 0xa2, 0x72, 0xf4, + 0xd9, 0xcb, 0x4b, 0x21, 0x7c, 0x04, 0x80, 0xee, 0xc2, 0x98, 0xd3, 0xb0, 0xda, 0x5d, 0xcb, 0xc3, + 0xd2, 0xf2, 0xeb, 0xa3, 0x2c, 0xdf, 0x16, 0x42, 0x81, 0xd9, 0x19, 0xa7, 0x67, 0x87, 0xbe, 0x53, + 0xe0, 0x12, 0x33, 0x1d, 0x6e, 0xbb, 0x06, 0x35, 0x39, 0xe1, 0xcc, 0x32, 0x35, 0x9d, 0xed, 0xda, + 0xc4, 0x3e, 0x38, 0xd2, 0xf2, 0x57, 0x42, 0xaa, 0xb9, 0x35, 0x4a, 0x4d, 0xad, 0x1f, 0x67, 0xcd, + 0x83, 0xf1, 0x35, 0x95, 0xc3, 0xaa, 0x82, 0x67, 0xd8, 0x69, 0x2c, 0x68, 0x06, 0xc0, 0x69, 0x3c, + 0xa6, 0x06, 0xd1, 0x5c, 0x5b, 0x57, 0x23, 0x39, 0x65, 0x3e, 0x85, 0x53, 0x1e, 0x65, 0xc7, 0xd6, + 0xf3, 0x3f, 0x29, 0x90, 0xe9, 0x75, 0x05, 0x6d, 0x42, 0x4c, 0x3a, 0xe3, 0x47, 0xf6, 0xe6, 0x50, + 0x03, 0xfd, 0xea, 0x39, 0x6e, 0x9f, 0x84, 0xf2, 0x63, 0xec, 0xe1, 0xa0, 0xdb, 0x90, 0xe8, 0x0f, + 0xed, 0xd5, 0x51, 0x3e, 0x7b, 0xa6, 0xe0, 0x40, 0x6c, 0x94, 0x0b, 0xff, 0x28, 0x30, 0x73, 0x6a, + 0x98, 0x10, 0x87, 0x8b, 0x27, 0xe4, 0xc3, 0xf7, 0xf2, 0xd3, 0xf3, 0x79, 0xe9, 0xc3, 0xfb, 0x7e, + 0x4e, 0x0d, 0x4f, 0xc0, 0xff, 0xee, 0xf8, 0x57, 0x61, 0x55, 0xc9, 0xff, 0x11, 0x81, 0xb8, 0x27, + 0x86, 0x10, 0x44, 0x4d, 0x62, 0x78, 0x89, 0x4b, 0x61, 0xb9, 0x46, 0x39, 0x48, 0x37, 0xa9, 0xd3, + 0xb0, 0x59, 0x5b, 0x58, 0xa6, 0x86, 0xe5, 0x51, 0x2f, 0x49, 0x48, 0xb9, 0x26, 0xe3, 0x3e, 0xba, + 0x5c, 0xa3, 0x5b, 0x10, 0x6b, 0x11, 0xb7, 0x45, 0xd5, 0x98, 0x8c, 0xce, 0x87, 0xa3, 0xec, 0x5e, + 0x16, 0xcc, 0x2b, 0x21, 0xec, 0x49, 0xa1, 0xcf, 0x21, 0xe2, 0xb8, 0x86, 0x9a, 0x90, 0xc2, 0x57, + 0x46, 0x36, 0x92, 0x6b, 0xac, 0x84, 0xb0, 0x90, 0x40, 0x35, 0x48, 0x3d, 0x66, 0x0e, 0xb7, 0x5a, + 0x36, 0x31, 0xd4, 0xd4, 0x29, 0x9d, 0xdd, 0x23, 0xbe, 0x12, 0x08, 0xac, 0x84, 0x70, 0x57, 0x1a, + 0x3d, 0x81, 0xf7, 0x69, 0xa7, 0x6d, 0x99, 0xd4, 0xe4, 0x8c, 0xe8, 0x5a, 0x17, 0x16, 0x24, 0xec, + 0x27, 0xa3, 0x60, 0xab, 0x5d, 0xe1, 0x5e, 0x0d, 0x93, 0x74, 0x08, 0x1d, 0x2d, 0x42, 0xc2, 0x71, + 0x0d, 0x43, 0xd4, 0x53, 0x5a, 0xc2, 0xcf, 0x9d, 0xc1, 0x69, 0xc1, 0xbe, 0x12, 0xc2, 0x81, 0x64, + 0x39, 0x0e, 0xd1, 0x26, 0xe1, 0x64, 0x35, 0x9a, 0x8c, 0x66, 0x63, 0xab, 0xd1, 0x64, 0x3c, 0x9b, + 0x58, 0x8d, 0x26, 0x93, 0xd9, 0x54, 0xfe, 0x3e, 0xc4, 0x64, 0x84, 0xd1, 0x16, 0xa4, 0x05, 0x8b, + 0xd6, 0xb6, 0x98, 0xc9, 0xcf, 0x7c, 0xc7, 0x6e, 0xb8, 0xc6, 0x2e, 0xb5, 0xc5, 0x4d, 0xbd, 0x25, + 0xe4, 0x30, 0x34, 0x83, 0xa5, 0x93, 0xff, 0x5b, 0x81, 0xc8, 0xb6, 0x6b, 0xbc, 0x79, 0x64, 0x64, + 0xc1, 0x45, 0xd2, 0x6a, 0xd9, 0xb4, 0xe5, 0xf5, 0x1b, 0xa7, 0x46, 0xdb, 0xb2, 0x89, 0xce, 0xf8, + 0x81, 0xac, 0xc2, 0xf1, 0x85, 0xcf, 0x46, 0xa1, 0x97, 0xba, 0xe2, 0xf5, 0xae, 0x34, 0x9e, 0x22, + 0x43, 0xe9, 0xe8, 0x32, 0x64, 0x98, 0xa3, 0x19, 0x96, 0x69, 0x71, 0xcb, 0x64, 0x0d, 0x59, 0xd0, + 0x49, 0x9c, 0x66, 0xce, 0x7a, 0x40, 0xca, 0xff, 0xac, 0x40, 0xaa, 0x9b, 0xb5, 0xed, 0x61, 0x3e, + 0x2f, 0x9c, 0xb9, 0xde, 0xde, 0x0e, 0xb7, 0xf3, 0x7f, 0x2a, 0x30, 0x39, 0xac, 0x58, 0xd1, 0xa3, + 0x61, 0xee, 0xdd, 0xfa, 0x2f, 0x75, 0xff, 0x96, 0x78, 0xfa, 0x10, 0x12, 0x7e, 0xdb, 0xa0, 0xbb, + 0xc3, 0x7c, 0xfb, 0xf8, 0x8c, 0x4d, 0x37, 0xbc, 0x13, 0x0e, 0xc3, 0x30, 0x31, 0x50, 0xcf, 0x68, + 0x1d, 0x80, 0x70, 0x6e, 0xb3, 0x5d, 0x97, 0x53, 0x47, 0xf5, 0x26, 0xf6, 0xdc, 0x88, 0x51, 0x71, + 0x87, 0x1e, 0xdc, 0x23, 0xba, 0x1b, 0x0c, 0xc1, 0x1e, 0x00, 0x54, 0x84, 0x49, 0x87, 0x13, 0x9b, + 0x6b, 0x9c, 0x19, 0x54, 0x73, 0x4d, 0xd6, 0xd1, 0x4c, 0x62, 0x5a, 0x32, 0x5c, 0x71, 0x7c, 0x41, + 0x9e, 0xd5, 0x99, 0x41, 0x77, 0x4c, 0xd6, 0xd9, 0x20, 0xa6, 0x85, 0x3e, 0x80, 0xf1, 0x01, 0xd6, + 0x88, 0x64, 0xcd, 0xf0, 0x5e, 0xae, 0x19, 0x48, 0x11, 0x47, 0x6b, 0x5a, 0xee, 0xae, 0x4e, 0xd5, + 0x68, 0x4e, 0x99, 0x57, 0x56, 0x42, 0x38, 0x49, 0x9c, 0x8a, 0xa4, 0xa0, 0x8b, 0x10, 0x27, 0x8e, + 0xc6, 0x4c, 0xae, 0xc6, 0x73, 0xca, 0x7c, 0x56, 0x5c, 0xd3, 0xc4, 0xa9, 0x99, 0x1c, 0xad, 0x41, + 0x8a, 0x76, 0xa8, 0xd1, 0xd6, 0x89, 0xed, 0xa8, 0x31, 0xe9, 0xdc, 0xfc, 0xe8, 0xf2, 0xf0, 0x04, + 0x7c, 0xef, 0xba, 0x00, 0x68, 0x12, 0x62, 0x7b, 0x3a, 0x69, 0x39, 0x6a, 0x32, 0xa7, 0xcc, 0x8f, + 0x61, 0x6f, 0x53, 0x4e, 0x40, 0x6c, 0x5f, 0x44, 0x63, 0x35, 0x9a, 0x54, 0xb2, 0xe1, 0xfc, 0xaf, + 0x11, 0x40, 0xc7, 0xcb, 0x6a, 0x20, 0xce, 0xa9, 0xb7, 0x34, 0xce, 0x93, 0x10, 0x6b, 0x58, 0xae, + 0xc9, 0x65, 0x8c, 0xe3, 0xd8, 0xdb, 0x20, 0xe4, 0x0d, 0xbb, 0x98, 0x1f, 0x77, 0x39, 0xc7, 0xae, + 0xc0, 0xd8, 0xae, 0xdb, 0x78, 0x42, 0xb9, 0x26, 0x79, 0x1c, 0x35, 0x9e, 0x8b, 0x08, 0x38, 0x8f, + 0xb8, 0x28, 0x69, 0x68, 0x0e, 0x26, 0x68, 0xa7, 0xad, 0xb3, 0x06, 0xe3, 0xda, 0xae, 0xe5, 0x9a, + 0x4d, 0xaf, 0xc2, 0x14, 0x3c, 0x1e, 0x90, 0xcb, 0x92, 0xda, 0x9f, 0xa7, 0xe4, 0x1b, 0xcb, 0x13, + 0xf4, 0xe4, 0x49, 0x78, 0x61, 0x30, 0x53, 0x4e, 0x2f, 0x65, 0x45, 0xc1, 0x62, 0x23, 0x69, 0xa4, + 0xa3, 0x66, 0x24, 0x2d, 0x8c, 0xc5, 0x46, 0x0c, 0x29, 0xc7, 0x35, 0x34, 0xf1, 0x6b, 0x30, 0xd3, + 0xfb, 0x25, 0x1d, 0xcd, 0x4f, 0xef, 0x8b, 0x18, 0xcc, 0x9c, 0x7a, 0x81, 0x0c, 0x64, 0x5a, 0x79, + 0xa7, 0x32, 0x9d, 0xed, 0xc9, 0xb4, 0x97, 0xe7, 0x49, 0xf1, 0x56, 0x26, 0x3a, 0x95, 0x9d, 0x75, + 0x01, 0x7b, 0x1b, 0xf1, 0x6a, 0xfb, 0x96, 0xda, 0x96, 0x97, 0x7b, 0xf9, 0x0a, 0x8a, 0xe3, 0x94, + 0xa0, 0xc8, 0xc4, 0xa3, 0x16, 0x24, 0xdb, 0x96, 0xc3, 0x38, 0xdb, 0xa7, 0xb2, 0x57, 0xd2, 0x0b, + 0xd5, 0xd7, 0xba, 0x94, 0x0b, 0x65, 0x59, 0x55, 0x4e, 0xf0, 0xcf, 0x26, 0x00, 0x17, 0x8a, 0x4c, + 0x79, 0x8d, 0xee, 0x53, 0xff, 0x31, 0xf5, 0x66, 0x15, 0x05, 0xe0, 0x27, 0x94, 0x54, 0x5f, 0xd9, + 0xa6, 0x5f, 0xb7, 0x6c, 0xfd, 0x02, 0xcd, 0x04, 0x6d, 0xd6, 0x53, 0xa0, 0x63, 0x47, 0x45, 0x4b, + 0x3a, 0xd3, 0x4b, 0x90, 0xf0, 0xcd, 0x44, 0x53, 0x10, 0xb7, 0xf6, 0xf6, 0x1c, 0xca, 0xe5, 0x8b, + 0xf8, 0x02, 0xf6, 0x77, 0xc7, 0xbb, 0x53, 0xbc, 0xce, 0xa3, 0xfd, 0xdd, 0x39, 0x58, 0xe0, 0xf9, + 0x1f, 0x23, 0x90, 0x1d, 0x9c, 0x1f, 0xef, 0xc8, 0x7c, 0x38, 0x6b, 0x35, 0x33, 0x98, 0xf8, 0xc6, + 0x25, 0x26, 0x67, 0x3a, 0xd5, 0xe4, 0xa5, 0xed, 0xdd, 0x5b, 0xe9, 0x85, 0xdb, 0xe7, 0x1d, 0xac, + 0x05, 0xe9, 0x61, 0x89, 0xdf, 0xf5, 0xe1, 0xf0, 0x78, 0x00, 0x2c, 0x0f, 0x4e, 0x18, 0x16, 0xd3, + 0x8b, 0x30, 0x31, 0x20, 0x88, 0xa6, 0x21, 0x19, 0x88, 0xca, 0x2c, 0x2a, 0xf8, 0x68, 0x2f, 0x40, + 0xa4, 0x99, 0x32, 0x3e, 0x0a, 0xee, 0x1b, 0x34, 0x4f, 0x23, 0x90, 0x0c, 0x8a, 0x09, 0x3d, 0x82, + 0xf7, 0xf6, 0x98, 0xce, 0xa9, 0x4d, 0x9b, 0xda, 0xeb, 0xe6, 0x0b, 0x05, 0x48, 0xa5, 0x6e, 0xde, + 0x8e, 0xa7, 0x21, 0x3c, 0x6a, 0x4c, 0x47, 0xce, 0x3e, 0xa6, 0xef, 0x43, 0xc2, 0x69, 0x13, 0x53, + 0x63, 0x4d, 0x99, 0xc0, 0x4c, 0xf9, 0xb6, 0x30, 0xe4, 0x97, 0x97, 0x97, 0xbe, 0x68, 0x59, 0x03, + 0xb6, 0x33, 0xab, 0xd8, 0xb0, 0x74, 0x9d, 0x36, 0xb8, 0x65, 0x17, 0xdb, 0xe2, 0x71, 0x53, 0x64, + 0x26, 0xa7, 0xb6, 0x49, 0xf4, 0xa2, 0xd8, 0x15, 0xb6, 0xdb, 0xc4, 0xac, 0x55, 0x70, 0x5c, 0x00, + 0xd6, 0x9a, 0xe8, 0x21, 0x24, 0xb9, 0x4d, 0x1a, 0x54, 0x60, 0xc7, 0x24, 0x76, 0xc9, 0xc7, 0xfe, + 0xf2, 0xfc, 0xd8, 0x75, 0x81, 0x54, 0xab, 0xe0, 0x84, 0x84, 0xac, 0x35, 0x07, 0x66, 0xff, 0xb5, + 0xef, 0x15, 0x98, 0x1a, 0xfe, 0xe2, 0x43, 0x73, 0x70, 0xa5, 0xb4, 0xbc, 0x8c, 0xab, 0xcb, 0xa5, + 0x7a, 0x6d, 0x73, 0x43, 0xab, 0x57, 0xd7, 0xb7, 0x36, 0x71, 0x69, 0xad, 0x56, 0xbf, 0xaf, 0xed, + 0x6c, 0x6c, 0x6f, 0x55, 0x17, 0x6b, 0x4b, 0xb5, 0x6a, 0x25, 0x1b, 0x42, 0x97, 0x61, 0xe6, 0x24, + 0xc6, 0x4a, 0x75, 0xad, 0x5e, 0xca, 0x2a, 0xe8, 0x2a, 0xe4, 0x4f, 0x62, 0x59, 0xdc, 0x59, 0xdf, + 0x59, 0x2b, 0xd5, 0x6b, 0xf7, 0xaa, 0xd9, 0xf0, 0xb5, 0xaf, 0x61, 0xfc, 0xa8, 0x5e, 0x97, 0xe4, + 0x85, 0x35, 0x06, 0xa9, 0xa5, 0xb5, 0xd2, 0xb2, 0xb6, 0xb1, 0xb9, 0x51, 0xcd, 0x86, 0xd0, 0x34, + 0x4c, 0xf9, 0x5b, 0x0d, 0x57, 0x17, 0x37, 0x71, 0xa5, 0x5a, 0xd1, 0xee, 0x95, 0xd6, 0x76, 0xaa, + 0x59, 0xa5, 0xfc, 0x83, 0xf2, 0xec, 0x70, 0x56, 0x79, 0x7e, 0x38, 0xab, 0xfc, 0x7e, 0x38, 0xab, + 0x3c, 0x7d, 0x35, 0x1b, 0x7a, 0xfe, 0x6a, 0x36, 0xf4, 0xe2, 0xd5, 0x6c, 0x08, 0x2e, 0x33, 0x6b, + 0x44, 0xbb, 0x94, 0x33, 0xfe, 0x77, 0x89, 0x2d, 0x71, 0xb0, 0xa5, 0x3c, 0xa8, 0x9e, 0x3b, 0xd8, + 0xde, 0x27, 0xba, 0x16, 0x35, 0x7b, 0xbe, 0x1a, 0xee, 0xc6, 0x25, 0xf1, 0xe6, 0xbf, 0x01, 0x00, + 0x00, 0xff, 0xff, 0x53, 0x6c, 0x38, 0x07, 0x5e, 0x14, 0x00, 0x00, } func (m *MetricsData) Marshal() (dAtA []byte, err error) { @@ -2703,6 +2827,24 @@ func (m *HistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Max_ != nil { + { + size := m.Max_.Size() + i -= size + if _, err := m.Max_.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if m.Min_ != nil { + { + size := m.Min_.Size() + i -= size + if _, err := m.Min_.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } if m.Flags != 0 { i = encodeVarintMetrics(dAtA, i, uint64(m.Flags)) i-- @@ -2798,6 +2940,32 @@ func (m *HistogramDataPoint_Sum) MarshalToSizedBuffer(dAtA []byte) (int, error) dAtA[i] = 0x29 return len(dAtA) - i, nil } +func (m *HistogramDataPoint_Min) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HistogramDataPoint_Min) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Min)))) + i-- + dAtA[i] = 0x59 + return len(dAtA) - i, nil +} +func (m *HistogramDataPoint_Max) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HistogramDataPoint_Max) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Max)))) + i-- + dAtA[i] = 0x61 + return len(dAtA) - i, nil +} func (m *ExponentialHistogramDataPoint) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2818,6 +2986,24 @@ func (m *ExponentialHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, _ = i var l int _ = l + if m.Max_ != nil { + { + size := m.Max_.Size() + i -= size + if _, err := m.Max_.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } + if m.Min_ != nil { + { + size := m.Min_.Size() + i -= size + if _, err := m.Min_.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } + } if len(m.Exemplars) > 0 { for iNdEx := len(m.Exemplars) - 1; iNdEx >= 0; iNdEx-- { { @@ -2909,6 +3095,32 @@ func (m *ExponentialHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *ExponentialHistogramDataPoint_Min) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExponentialHistogramDataPoint_Min) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Min)))) + i-- + dAtA[i] = 0x61 + return len(dAtA) - i, nil +} +func (m *ExponentialHistogramDataPoint_Max) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExponentialHistogramDataPoint_Max) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Max)))) + i-- + dAtA[i] = 0x69 + return len(dAtA) - i, nil +} func (m *ExponentialHistogramDataPoint_Buckets) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -3524,6 +3736,12 @@ func (m *HistogramDataPoint) Size() (n int) { if m.Flags != 0 { n += 1 + sovMetrics(uint64(m.Flags)) } + if m.Min_ != nil { + n += m.Min_.Size() + } + if m.Max_ != nil { + n += m.Max_.Size() + } return n } @@ -3536,6 +3754,24 @@ func (m *HistogramDataPoint_Sum) Size() (n int) { n += 9 return n } +func (m *HistogramDataPoint_Min) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *HistogramDataPoint_Max) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} func (m *ExponentialHistogramDataPoint) Size() (n int) { if m == nil { return 0 @@ -3579,9 +3815,33 @@ func (m *ExponentialHistogramDataPoint) Size() (n int) { n += 1 + l + sovMetrics(uint64(l)) } } + if m.Min_ != nil { + n += m.Min_.Size() + } + if m.Max_ != nil { + n += m.Max_.Size() + } return n } +func (m *ExponentialHistogramDataPoint_Min) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} +func (m *ExponentialHistogramDataPoint_Max) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 9 + return n +} func (m *ExponentialHistogramDataPoint_Buckets) Size() (n int) { if m == nil { return 0 @@ -5527,6 +5787,28 @@ func (m *HistogramDataPoint) Unmarshal(dAtA []byte) error { break } } + case 11: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Min_ = &HistogramDataPoint_Min{float64(math.Float64frombits(v))} + case 12: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Max_ = &HistogramDataPoint_Max{float64(math.Float64frombits(v))} default: iNdEx = preIndex skippy, err := skipMetrics(dAtA[iNdEx:]) @@ -5802,6 +6084,28 @@ func (m *ExponentialHistogramDataPoint) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 12: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Min", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Min_ = &ExponentialHistogramDataPoint_Min{float64(math.Float64frombits(v))} + case 13: + if wireType != 1 { + return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType) + } + var v uint64 + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF + } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.Max_ = &ExponentialHistogramDataPoint_Max{float64(math.Float64frombits(v))} default: iNdEx = preIndex skippy, err := skipMetrics(dAtA[iNdEx:]) From a99ca170f4c7043f25fe7f89626fa15a0e6dc22a Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Fri, 13 May 2022 09:34:03 -0600 Subject: [PATCH 33/67] [Telemetry Query Language] Iterate on processing doc (#5356) * Change descriptor to metric * Added function syntax standards * Update processing.md * Updated pdata link * Update processing.md --- docs/processing.md | 40 ++++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/docs/processing.md b/docs/processing.md index 3c98db5dd7a..3780dc61747 100644 --- a/docs/processing.md +++ b/docs/processing.md @@ -100,7 +100,7 @@ We can try to model these into a query language, in particular allowing the firs processing operations, and only have implementation of individual types of processing need to implement operators that the user can use within an expression. -Telemetry is modeled in the collector as [`pdata`](https://github.com/open-telemetry/opentelemetry-collector/tree/main/model/pdata) +Telemetry is modeled in the collector as [`pdata`](https://github.com/open-telemetry/opentelemetry-collector/tree/main/pdata) which is roughly a 1:1 mapping of the [OTLP protocol](https://github.com/open-telemetry/opentelemetry-proto/tree/main/opentelemetry/proto). This data can be navigated using field expressions, which are fields within the protocol separated by dots. For example, the status message of a span is `status.message`. A map lookup can include the key as a string, for example `attributes["http.status_code"]`. @@ -110,16 +110,26 @@ signal being part of a query space. Virtual fields are added to access data from `resource`, `library_info`. For metrics, the structure presented for processing is actual data points, e.g. `NumberDataPoint`, `HistogramDataPoint`, with the information from higher levels like `Metric` or the data type available as virtual fields. -Virtual fields for all signals: `resource`, `library_info`. -Virtual fields for metrics: `descriptor`, which contains `metric.name`, `metric.description`, `metric.unit`. +Virtual fields for all signals: `resource`, `library_info`. +Virtual fields for metrics: `metric`, which contains `name`, `description`, `unit`, `type`, `aggregation_temporality`, and `is_monotonic`. Navigation can then be used with a simple expression language for identifying telemetry to operate on. -`... where name = "GET /cats"` -`... from span where attributes["http.target"] = "/health"` -`... where resource.attributes["deployment"] = "canary"` -`... from metric where descriptor.metric_type = gauge` -`... from metric where descriptor.metric_name = "http.active_requests"` +``` +... where name = "GET /cats" +``` +``` +... from span where attributes["http.target"] = "/health" +``` +``` +... where resource.attributes["deployment"] = "canary" +``` +``` +... from metric where metric.type = gauge +``` +``` +... from metric where metric.name = "http.active_requests" +``` Fields should always be fully specified - for example `attributes` refers to the `attributes` field in the telemetry, not the `resource`. In the future, we may allow shorthand for accessing scoped information that is not ambiguous. @@ -142,8 +152,8 @@ Remove a forbidden attribute such as `http.request.header.authorization` from sp Remove all attributes except for some -`keep(attributes, "http.method", "http.status_code") from metrics` -`keep(attributes, "http.method", "http.status_code")` +`keep_keys(attributes, "http.method", "http.status_code") from metrics` +`keep_keys(attributes, "http.method", "http.status_code")` Reduce cardinality of an attribute @@ -239,6 +249,16 @@ sense as a user experience. An implementation of the query language would likely parse expressions into this sort of structure so given an SQL-like implementation, it would likely be little overhead to support a YAML approach in addition. +## Function syntax + +Functions should be named and formatted according to the following standards. +- Function names MUST start with a verb. +- Function names that contain multiple words MUST separate those words with `_`. +- Functions that interact with multiple items MUST have plurality in the name. Ex: `truncate_all`, `keep_keys`, `replace_wildcards`. +- Functions that interact with a single item MUST NOT have plurality in the name. If a function would interact with multiple items due to a condition, like `where`, it is still considered singular. Ex: `set`, `delete`, `drop`. +- Functions that change a specific target MUST set the target as the first parameter. +- Functions that take a list MUST set the list as the last parameter. + ## Implementing a processor function The `replace_wildcards` function may look like this. From 3a97fe14fbbe06463c4c79f249e772a58d75741b Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Fri, 13 May 2022 15:27:34 -0700 Subject: [PATCH 34/67] Deprecate `config.Config` and `config.Service`, use `service.Config*` (#4608) * Deprecate `config.Config` and `config.Service`, use `service.Config*` Fixes https://github.com/open-telemetry/opentelemetry-collector/issues/4605 Followup PRs: * Move service/internal/configunmarshaler as private struct into service/ to avoid circular dependency (no public API change) * Change service/internal/builders to private structs in service/ or don't pass config, instead only pass the components and pipeline from the config. While doing this, I realize that the "service" section in our config is a bit useless, we can think of promoting everything under "service::" one level up. Signed-off-by: Bogdan Drutu * Update moved_service.go --- CHANGELOG.md | 4 ++- config/common.go | 33 +++++++++++++++++++ config/{config.go => moved_config.go} | 18 +--------- .../{config_test.go => moved_config_test.go} | 0 config/{service.go => moved_service.go} | 27 +++++---------- service/config.go | 31 +++++++++++++++++ service/config_provider.go | 6 ++-- service/service.go | 3 +- service/service_test.go | 9 +++-- service/settings.go | 3 +- 10 files changed, 87 insertions(+), 47 deletions(-) rename config/{config.go => moved_config.go} (87%) rename config/{config_test.go => moved_config_test.go} (100%) rename config/{service.go => moved_service.go} (87%) create mode 100644 service/config.go diff --git a/CHANGELOG.md b/CHANGELOG.md index e4b573d4750..7de3042b21f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,14 @@ ### 🛑 Breaking changes 🛑 -- Remove `configunmarshaler.Unmarshaler` interface, per deprecation comment )#5348) +- Remove `configunmarshaler.Unmarshaler` interface, per deprecation comment (#5348) - Remove deprecated pdata funcs/structs from v0.50.0 (#5345) - Remove derecated featuregate funcs/structs from v0.50.0 (#5346) ### 🚩 Deprecations 🚩 +- Deprecate `config.Config` and `config.Service`, use `service.Config*` (#4608) + ### 💡 Enhancements 💡 - Update OTLP to v0.17.0 (#5335) diff --git a/config/common.go b/config/common.go index b2e582356c4..408fda6a1f1 100644 --- a/config/common.go +++ b/config/common.go @@ -14,6 +14,39 @@ package config // import "go.opentelemetry.io/collector/config" +// Type is the component type as it is used in the config. +type Type string + +// validatable defines the interface for the configuration validation. +type validatable interface { + // Validate validates the configuration and returns an error if invalid. + Validate() error +} + +// Unmarshallable defines an optional interface for custom configuration unmarshaling. +// A configuration struct can implement this interface to override the default unmarshaling. +type Unmarshallable interface { + // Unmarshal is a function that unmarshals a config.Map into the unmarshable struct in a custom way. + // The config.Map for this specific component may be nil or empty if no config available. + Unmarshal(component *Map) error +} + +// DataType is a special Type that represents the data types supported by the collector. We currently support +// collecting metrics, traces and logs, this can expand in the future. +type DataType = Type + +// Currently supported data types. Add new data types here when new types are supported in the future. +const ( + // TracesDataType is the data type tag for traces. + TracesDataType DataType = "traces" + + // MetricsDataType is the data type tag for metrics. + MetricsDataType DataType = "metrics" + + // LogsDataType is the data type tag for logs. + LogsDataType DataType = "logs" +) + func unmarshal(componentSection *Map, intoCfg interface{}) error { if cu, ok := intoCfg.(Unmarshallable); ok { return cu.Unmarshal(componentSection) diff --git a/config/config.go b/config/moved_config.go similarity index 87% rename from config/config.go rename to config/moved_config.go index eace63ab25f..cb441f23bcf 100644 --- a/config/config.go +++ b/config/moved_config.go @@ -26,6 +26,7 @@ var ( ) // Config defines the configuration for the various elements of collector or agent. +// Deprecated: [v0.52.0] Use service.Config type Config struct { // Receivers is a map of ComponentID to Receivers. Receivers map[ComponentID]Receiver @@ -146,20 +147,3 @@ func (cfg *Config) validateService() error { } return nil } - -// Type is the component type as it is used in the config. -type Type string - -// validatable defines the interface for the configuration validation. -type validatable interface { - // Validate validates the configuration and returns an error if invalid. - Validate() error -} - -// Unmarshallable defines an optional interface for custom configuration unmarshalling. -// A configuration struct can implement this interface to override the default unmarshalling. -type Unmarshallable interface { - // Unmarshal is a function that unmarshals a config.Map into the struct in a custom way. - // The config.Map for this specific component may be nil or empty if no config available. - Unmarshal(component *Map) error -} diff --git a/config/config_test.go b/config/moved_config_test.go similarity index 100% rename from config/config_test.go rename to config/moved_config_test.go diff --git a/config/service.go b/config/moved_service.go similarity index 87% rename from config/service.go rename to config/moved_service.go index d53fcf7b14d..83bc3855c96 100644 --- a/config/service.go +++ b/config/moved_service.go @@ -21,6 +21,7 @@ import ( ) // Service defines the configurable components of the service. +// Deprecated: [v0.52.0] Use service.ConfigService type Service struct { // Telemetry is the configuration for collector's own telemetry. Telemetry ServiceTelemetry `mapstructure:"telemetry"` @@ -29,10 +30,11 @@ type Service struct { Extensions []ComponentID `mapstructure:"extensions"` // Pipelines are the set of data pipelines configured for the service. - Pipelines Pipelines `mapstructure:"pipelines"` + Pipelines map[ComponentID]*Pipeline `mapstructure:"pipelines"` } // ServiceTelemetry defines the configurable settings for service telemetry. +// Deprecated: [v0.52.0] Use service.ConfigServiceTelemetry type ServiceTelemetry struct { Logs ServiceTelemetryLogs `mapstructure:"logs"` Metrics ServiceTelemetryMetrics `mapstructure:"metrics"` @@ -41,6 +43,7 @@ type ServiceTelemetry struct { // ServiceTelemetryLogs defines the configurable settings for service telemetry logs. // This MUST be compatible with zap.Config. Cannot use directly zap.Config because // the collector uses mapstructure and not yaml tags. +// Deprecated: [v0.52.0] Use service.ConfigServiceTelemetryLogs type ServiceTelemetryLogs struct { // Level is the minimum enabled logging level. // (default = "INFO") @@ -98,6 +101,7 @@ type ServiceTelemetryLogs struct { // ServiceTelemetryMetrics exposes the common Telemetry configuration for one component. // Experimental: *NOTE* this structure is subject to change or removal in the future. +// Deprecated: [v0.52.0] Use service.ConfigServiceTelemetryMetrics type ServiceTelemetryMetrics struct { // Level is the level of telemetry metrics, the possible values are: // - "none" indicates that no telemetry data should be collected; @@ -110,28 +114,13 @@ type ServiceTelemetryMetrics struct { Address string `mapstructure:"address"` } -// DataType is a special Type that represents the data types supported by the collector. We currently support -// collecting metrics, traces and logs, this can expand in the future. -type DataType = Type - -// Currently supported data types. Add new data types here when new types are supported in the future. -const ( - // TracesDataType is the data type tag for traces. - TracesDataType DataType = "traces" - - // MetricsDataType is the data type tag for metrics. - MetricsDataType DataType = "metrics" - - // LogsDataType is the data type tag for logs. - LogsDataType DataType = "logs" -) - // Pipeline defines a single pipeline. +// Deprecated: [v0.52.0] Use service.ConfigServicePipeline type Pipeline struct { Receivers []ComponentID `mapstructure:"receivers"` Processors []ComponentID `mapstructure:"processors"` Exporters []ComponentID `mapstructure:"exporters"` } -// Pipelines is a map of names to Pipelines. -type Pipelines map[ComponentID]*Pipeline +// Deprecated: [v0.52.0] will be removed soon. +type Pipelines = map[ComponentID]*Pipeline diff --git a/service/config.go b/service/config.go new file mode 100644 index 00000000000..8b659c8ff26 --- /dev/null +++ b/service/config.go @@ -0,0 +1,31 @@ +// 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 service // import "go.opentelemetry.io/collector/service" + +import ( + "go.opentelemetry.io/collector/config" +) + +type Config = config.Config + +type ConfigService = config.Service + +type ConfigServiceTelemetry = config.ServiceTelemetry + +type ConfigServiceTelemetryLogs = config.ServiceTelemetryLogs + +type ConfigServiceTelemetryMetrics = config.ServiceTelemetryMetrics + +type ConfigServicePipeline = config.Pipeline diff --git a/service/config_provider.go b/service/config_provider.go index 1e2b6e27858..712d2efb978 100644 --- a/service/config_provider.go +++ b/service/config_provider.go @@ -41,7 +41,7 @@ type ConfigProvider interface { // Get returns the service configuration, or error otherwise. // // Should never be called concurrently with itself, Watch or Shutdown. - Get(ctx context.Context, factories component.Factories) (*config.Config, error) + Get(ctx context.Context, factories component.Factories) (*Config, error) // Watch blocks until any configuration change was detected or an unrecoverable error // happened during monitoring the configuration changes. @@ -103,13 +103,13 @@ func NewConfigProvider(set ConfigProviderSettings) (ConfigProvider, error) { }, nil } -func (cm *configProvider) Get(ctx context.Context, factories component.Factories) (*config.Config, error) { +func (cm *configProvider) Get(ctx context.Context, factories component.Factories) (*Config, error) { retMap, err := cm.mapResolver.Resolve(ctx) if err != nil { return nil, fmt.Errorf("cannot resolve the configuration: %w", err) } - var cfg *config.Config + var cfg *Config if cfg, err = configunmarshaler.New().Unmarshal(retMap, factories); err != nil { return nil, fmt.Errorf("cannot unmarshal the configuration: %w", err) } diff --git a/service/service.go b/service/service.go index 9df7477674d..1f2bac4b9e3 100644 --- a/service/service.go +++ b/service/service.go @@ -21,7 +21,6 @@ import ( "go.uber.org/multierr" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/service/internal/builder" "go.opentelemetry.io/collector/service/internal/extensions" ) @@ -29,7 +28,7 @@ import ( // service represents the implementation of a component.Host. type service struct { buildInfo component.BuildInfo - config *config.Config + config *Config telemetry component.TelemetrySettings host *serviceHost } diff --git a/service/service_test.go b/service/service_test.go index 634cd0108d6..cdb20024d6f 100644 --- a/service/service_test.go +++ b/service/service_test.go @@ -25,7 +25,8 @@ import ( "go.opentelemetry.io/collector/component" "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/config" - "go.opentelemetry.io/collector/service/servicetest" + "go.opentelemetry.io/collector/config/configtest" + "go.opentelemetry.io/collector/service/internal/configunmarshaler" ) func TestService_GetFactory(t *testing.T) { @@ -91,8 +92,10 @@ func TestService_GetExporters(t *testing.T) { } func createExampleService(t *testing.T, factories component.Factories) *service { - // Create some factories. - cfg, err := servicetest.LoadConfigAndValidate(filepath.Join("testdata", "otelcol-nop.yaml"), factories) + // Read yaml config from file + cfgMap, err := configtest.LoadConfigMap(filepath.Join("testdata", "otelcol-nop.yaml")) + require.NoError(t, err) + cfg, err := configunmarshaler.New().Unmarshal(cfgMap, factories) require.NoError(t, err) srv, err := newService(&svcSettings{ diff --git a/service/settings.go b/service/settings.go index 9b70ac53c2e..749397e730a 100644 --- a/service/settings.go +++ b/service/settings.go @@ -18,7 +18,6 @@ import ( "go.uber.org/zap" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/config" ) // svcSettings holds configuration for building a new service. @@ -30,7 +29,7 @@ type svcSettings struct { BuildInfo component.BuildInfo // Config represents the configuration of the service. - Config *config.Config + Config *Config // Telemetry represents the service configured telemetry for all the components. Telemetry component.TelemetrySettings From 247b8cab1a7f0baa789d9ae7a28f85ff052f3113 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Mon, 16 May 2022 10:33:41 -0700 Subject: [PATCH 35/67] Add high level design of the config package and config resolving (#5361) Signed-off-by: Bogdan Drutu --- config/README.md | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 config/README.md diff --git a/config/README.md b/config/README.md new file mode 100644 index 00000000000..f8286cb1f79 --- /dev/null +++ b/config/README.md @@ -0,0 +1,84 @@ +# High Level Design + +This document is work in progress, some concepts are not yet available +(e.g. MapResolver is a private concept in the service for the moment). + +## Map + +The [Map](configmap.go) represents the raw configuration for a service (e.g. OpenTelemetry Collector). + +## MapProvider + +The [MapProvider](mapprovider.go) provides configuration, and allows to watch/monitor for changes. + +## MapConverter + +The [MapConverter](configmap.go) allows implementing conversion logic for the provided configuration. One of the most +common use-case is to migrate/transform the configuration after a backwards incompatible change. + +## MapResolver + +The `MapResolver` handles the use of multiple [MapProviders](./mapprovider.go) and [Converters](./configmap.go) +simplifying configuration parsing, monitoring for updates, and the overall life-cycle of the used config providers. +The `MapResolver` provides two main functionalities: [Configuration Resolving](#configuration-resolving) and +[Watching for Updates](#watching-for-updates). + +### Configuration Resolving + +The `MapResolver` receives as input a set of `MapProviders`, a list of `MapConverters`, and a list of configuration identifier +`configUri` that will be used to generate the resulting, or effective, configuration in the form of a `config.Map`, +that can be used by code that is oblivious to the usage of `MapProviders` and `MapConverters`. + +```terminal + MapResolver MapProvider + │ │ + Resolve │ │ +────────────────►│ │ + │ │ + ┌─ │ Retrieve │ + │ ├─────────────────────────►│ + │ │ │ + │ │◄─────────────────────────┤ + foreach │ │ │ + configURI │ ├───┐ │ + │ │ │Merge │ + │ │◄──┘ │ + └─ │ │ + │ MapConverter │ + │ │ │ + ┌─ │ Convert │ │ + │ ├───────────────►│ │ + foreach │ │ │ │ + MapConverter │ │◄───────────────┤ │ + └─ │ │ + │ │ +◄────────────────┤ │ + │ │ +``` + +The `Resolve` method proceeds in the following steps: + +1. Start with an empty "result" of `config.Map` type. +2. For each config URI retrieves individual configurations, and merges it into the "result". +2. For each "Converter", call "Convert" for the "result". +4. Return the "result", aka effective, configuration. + +### Watching for Updates +After the configuration was processed, the `MapResolver` can be used as a single point to watch for updates in the +configuration retrieved via the `MapProvider` used to retrieve the “initial” configuration and to generate the “effective” one. + +```terminal + MapResolver MapProvider + │ │ + Watch │ │ +───────────►│ │ + │ │ + . . + . . + . . + │ onChange │ + │◄────────────────────┤ +◄───────────┤ │ +``` + +The `MapResolver` does that by passing an `onChange` func to each `MapProvider.Retrieve` call and capturing all watch events. From e8dd9536f5e53228606c325f12d4bfc4b4293acc Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Mon, 16 May 2022 10:36:41 -0700 Subject: [PATCH 36/67] Enable errorlint and fix all warnings (#5364) On top of the errorlint errors, also changes `fmt.Errorf("string literal")` with `errors.New("string literal")`. Signed-off-by: Bogdan Drutu --- .golangci.yml | 1 + cmd/builder/internal/builder/config.go | 2 +- component/componenttest/shutdown_verifier.go | 3 +- config/configgrpc/configgrpc.go | 2 +- config/configgrpc/configgrpc_test.go | 6 +-- config/confighttp/confighttp.go | 4 +- config/confighttp/confighttp_test.go | 4 +- config/configtelemetry/configtelemetry.go | 3 +- config/configtls/configtls.go | 3 +- consumer/consumererror/signalerrors_test.go | 7 ++- .../internal/persistent_storage.go | 2 +- .../queued_retry_experimental.go | 4 +- .../exporterhelper/queued_retry_inmemory.go | 5 +- exporter/loggingexporter/known_sync_error.go | 7 +-- exporter/loggingexporter/logging_exporter.go | 4 +- exporter/otlphttpexporter/config.go | 4 +- exporter/otlphttpexporter/otlp_test.go | 8 +-- extension/ballastextension/config.go | 4 +- extension/zpagesextension/zpagesextension.go | 5 +- obsreport/obsreport_scraper.go | 4 +- obsreport/obsreport_test.go | 50 +++++++++---------- .../memorylimiterprocessor/factory_test.go | 8 ++- .../memorylimiterprocessor/memorylimiter.go | 4 +- .../memorylimiter_test.go | 11 ++-- receiver/otlpreceiver/config.go | 6 +-- receiver/otlpreceiver/otlp.go | 5 +- .../scrapererror/partialscrapeerror_test.go | 3 +- receiver/scrapererror/scrapeerror_test.go | 12 ++--- .../scraperhelper/scrapercontroller_test.go | 3 +- service/internal/builder/exporters_builder.go | 3 +- service/internal/builder/receivers_builder.go | 4 +- .../configunmarshaler/defaultunmarshaler.go | 12 ++--- .../defaultunmarshaler_test.go | 5 +- .../internal/extensions/extensions_test.go | 4 +- service/mapresolver.go | 7 +-- service/telemetry.go | 4 +- 36 files changed, 116 insertions(+), 107 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 64583c1460f..f165e948e12 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -110,6 +110,7 @@ linters: enable: - depguard - errcheck + - errorlint - exportloopref - gocritic - gofmt diff --git a/cmd/builder/internal/builder/config.go b/cmd/builder/internal/builder/config.go index 67ed861b3fb..d57b986452c 100644 --- a/cmd/builder/internal/builder/config.go +++ b/cmd/builder/internal/builder/config.go @@ -147,7 +147,7 @@ func parseModules(mods []Module) ([]Module, error) { if strings.HasPrefix(mod.Path, "./") { path, err := os.Getwd() if err != nil { - return mods, fmt.Errorf("module has a relative Path element, but we couldn't get the current working dir: %v", err) + return mods, fmt.Errorf("module has a relative Path element, but we couldn't get the current working dir: %w", err) } mod.Path = fmt.Sprintf("%s/%s", path, mod.Path[2:]) diff --git a/component/componenttest/shutdown_verifier.go b/component/componenttest/shutdown_verifier.go index d2ce1a6ef21..fd55a51ee5b 100644 --- a/component/componenttest/shutdown_verifier.go +++ b/component/componenttest/shutdown_verifier.go @@ -16,6 +16,7 @@ package componenttest // import "go.opentelemetry.io/collector/component/compone import ( "context" + "errors" "testing" "github.com/stretchr/testify/assert" @@ -38,7 +39,7 @@ func verifyTracesProcessorDoesntProduceAfterShutdown(t *testing.T, factory compo nextSink, ) if err != nil { - if err == componenterror.ErrDataTypeIsNotSupported { + if errors.Is(err, componenterror.ErrDataTypeIsNotSupported) { return } require.NoError(t, err) diff --git a/config/configgrpc/configgrpc.go b/config/configgrpc/configgrpc.go index 5ea9a651d6a..490ab4a3629 100644 --- a/config/configgrpc/configgrpc.go +++ b/config/configgrpc/configgrpc.go @@ -221,7 +221,7 @@ func (gcs *GRPCClientSettings) ToDialOptions(host component.Host, settings compo if gcs.Auth != nil { if host.GetExtensions() == nil { - return nil, fmt.Errorf("no extensions configuration available") + return nil, errors.New("no extensions configuration available") } grpcAuthenticator, cerr := gcs.Auth.GetClientAuthenticator(host.GetExtensions()) diff --git a/config/configgrpc/configgrpc_test.go b/config/configgrpc/configgrpc_test.go index 85e96e1ec65..076015c7f9e 100644 --- a/config/configgrpc/configgrpc_test.go +++ b/config/configgrpc/configgrpc_test.go @@ -16,7 +16,7 @@ package configgrpc import ( "context" - "fmt" + "errors" "io/ioutil" "net" "os" @@ -895,7 +895,7 @@ func TestDefaultUnaryInterceptorAuthSucceeded(t *testing.T) { func TestDefaultUnaryInterceptorAuthFailure(t *testing.T) { // prepare authCalled := false - expectedErr := fmt.Errorf("not authenticated") + expectedErr := errors.New("not authenticated") authFunc := func(context.Context, map[string][]string) (context.Context, error) { authCalled = true return context.Background(), expectedErr @@ -969,7 +969,7 @@ func TestDefaultStreamInterceptorAuthSucceeded(t *testing.T) { func TestDefaultStreamInterceptorAuthFailure(t *testing.T) { // prepare authCalled := false - expectedErr := fmt.Errorf("not authenticated") + expectedErr := errors.New("not authenticated") authFunc := func(context.Context, map[string][]string) (context.Context, error) { authCalled = true return context.Background(), expectedErr diff --git a/config/confighttp/confighttp.go b/config/confighttp/confighttp.go index 9ab84375b2a..9416ac9ccbe 100644 --- a/config/confighttp/confighttp.go +++ b/config/confighttp/confighttp.go @@ -16,7 +16,7 @@ package confighttp // import "go.opentelemetry.io/collector/config/confighttp" import ( "crypto/tls" - "fmt" + "errors" "net" "net/http" "time" @@ -156,7 +156,7 @@ func (hcs *HTTPClientSettings) ToClient(ext map[config.ComponentID]component.Ext if hcs.Auth != nil { if ext == nil { - return nil, fmt.Errorf("extensions configuration not found") + return nil, errors.New("extensions configuration not found") } httpCustomAuthRoundTripper, aerr := hcs.Auth.GetClientAuthenticator(ext) diff --git a/config/confighttp/confighttp_test.go b/config/confighttp/confighttp_test.go index 3d4b71917eb..d418415edbd 100644 --- a/config/confighttp/confighttp_test.go +++ b/config/confighttp/confighttp_test.go @@ -681,7 +681,7 @@ func TestHttpCorsWithAuthentication(t *testing.T) { ext: map[config.ComponentID]component.Extension{ config.NewComponentID("mock"): configauth.NewServerAuthenticator( configauth.WithAuthenticate(func(ctx context.Context, headers map[string][]string) (context.Context, error) { - return ctx, fmt.Errorf("authentication failed") + return ctx, errors.New("authentication failed") }), ), }, @@ -921,7 +921,7 @@ func TestFailedServerAuth(t *testing.T) { ext: map[config.ComponentID]component.Extension{ config.NewComponentID("mock"): configauth.NewServerAuthenticator( configauth.WithAuthenticate(func(ctx context.Context, headers map[string][]string) (context.Context, error) { - return ctx, fmt.Errorf("authentication failed") + return ctx, errors.New("authentication failed") }), ), }, diff --git a/config/configtelemetry/configtelemetry.go b/config/configtelemetry/configtelemetry.go index 3f3b9b18576..a363db1e54c 100644 --- a/config/configtelemetry/configtelemetry.go +++ b/config/configtelemetry/configtelemetry.go @@ -16,6 +16,7 @@ package configtelemetry // import "go.opentelemetry.io/collector/config/configte import ( "encoding" + "errors" "fmt" "strings" ) @@ -59,7 +60,7 @@ func (l Level) String() string { // UnmarshalText unmarshalls text to a Level. func (l *Level) UnmarshalText(text []byte) error { if l == nil { - return fmt.Errorf("cannot unmarshal to a nil *Level") + return errors.New("cannot unmarshal to a nil *Level") } str := strings.ToLower(string(text)) diff --git a/config/configtls/configtls.go b/config/configtls/configtls.go index 73592e23fc0..6f2014f5268 100644 --- a/config/configtls/configtls.go +++ b/config/configtls/configtls.go @@ -17,6 +17,7 @@ package configtls // import "go.opentelemetry.io/collector/config/configtls" import ( "crypto/tls" "crypto/x509" + "errors" "fmt" "io/ioutil" "path/filepath" @@ -160,7 +161,7 @@ func (c TLSSetting) loadTLSConfig() (*tls.Config, error) { } if (c.CertFile == "" && c.KeyFile != "") || (c.CertFile != "" && c.KeyFile == "") { - return nil, fmt.Errorf("for auth via TLS, either both certificate and key must be supplied, or neither") + return nil, errors.New("for auth via TLS, either both certificate and key must be supplied, or neither") } var getCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error) diff --git a/consumer/consumererror/signalerrors_test.go b/consumer/consumererror/signalerrors_test.go index fe490dd84d6..27cf5f752dc 100644 --- a/consumer/consumererror/signalerrors_test.go +++ b/consumer/consumererror/signalerrors_test.go @@ -16,7 +16,6 @@ package consumererror import ( "errors" - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -27,7 +26,7 @@ import ( func TestTraces(t *testing.T) { td := testdata.GenerateTracesOneSpan() - err := fmt.Errorf("some error") + err := errors.New("some error") traceErr := NewTraces(err, td) assert.Equal(t, err.Error(), traceErr.Error()) var target Traces @@ -51,7 +50,7 @@ func TestTraces_Unwrap(t *testing.T) { func TestLogs(t *testing.T) { td := testdata.GenerateLogsOneLogRecord() - err := fmt.Errorf("some error") + err := errors.New("some error") logsErr := NewLogs(err, td) assert.Equal(t, err.Error(), logsErr.Error()) var target Logs @@ -75,7 +74,7 @@ func TestLogs_Unwrap(t *testing.T) { func TestMetrics(t *testing.T) { td := testdata.GenerateMetricsOneMetric() - err := fmt.Errorf("some error") + err := errors.New("some error") metricErr := NewMetrics(err, td) assert.Equal(t, err.Error(), metricErr.Error()) var target Metrics diff --git a/exporter/exporterhelper/internal/persistent_storage.go b/exporter/exporterhelper/internal/persistent_storage.go index 8fa9f471c66..a8e9e715a5d 100644 --- a/exporter/exporterhelper/internal/persistent_storage.go +++ b/exporter/exporterhelper/internal/persistent_storage.go @@ -153,7 +153,7 @@ func initPersistentContiguousStorage(ctx context.Context, pcs *persistentContigu } if err != nil { - if err == errValueNotSet { + if errors.Is(err, errValueNotSet) { pcs.logger.Info("Initializing new persistent queue", zap.String(zapQueueNameKey, pcs.queueName)) } else { pcs.logger.Error("Failed getting read/write index, starting with new ones", diff --git a/exporter/exporterhelper/queued_retry_experimental.go b/exporter/exporterhelper/queued_retry_experimental.go index 4153edacdad..30aadebfeb3 100644 --- a/exporter/exporterhelper/queued_retry_experimental.go +++ b/exporter/exporterhelper/queued_retry_experimental.go @@ -69,7 +69,7 @@ func (qCfg *QueueSettings) Validate() error { } if qCfg.QueueSize <= 0 { - return fmt.Errorf("queue size must be positive") + return errors.New("queue size must be positive") } return nil @@ -217,7 +217,7 @@ func (qrs *queuedRetrySender) start(ctx context.Context, host component.Host) er return int64(qrs.queue.Size()) }, metricdata.NewLabelValue(qrs.fullName())) if err != nil { - return fmt.Errorf("failed to create retry queue size metric: %v", err) + return fmt.Errorf("failed to create retry queue size metric: %w", err) } } diff --git a/exporter/exporterhelper/queued_retry_inmemory.go b/exporter/exporterhelper/queued_retry_inmemory.go index ca9a46d448b..7349a85de54 100644 --- a/exporter/exporterhelper/queued_retry_inmemory.go +++ b/exporter/exporterhelper/queued_retry_inmemory.go @@ -19,6 +19,7 @@ package exporterhelper // import "go.opentelemetry.io/collector/exporter/exporte import ( "context" + "errors" "fmt" "go.opencensus.io/metric/metricdata" @@ -64,7 +65,7 @@ func (qCfg *QueueSettings) Validate() error { } if qCfg.QueueSize <= 0 { - return fmt.Errorf("queue size must be positive") + return errors.New("queue size must be positive") } return nil @@ -125,7 +126,7 @@ func (qrs *queuedRetrySender) start(context.Context, component.Host) error { return int64(qrs.queue.Size()) }, metricdata.NewLabelValue(qrs.fullName)) if err != nil { - return fmt.Errorf("failed to create retry queue size metric: %v", err) + return fmt.Errorf("failed to create retry queue size metric: %w", err) } } diff --git a/exporter/loggingexporter/known_sync_error.go b/exporter/loggingexporter/known_sync_error.go index da1eb9c65fc..86c8b6a11da 100644 --- a/exporter/loggingexporter/known_sync_error.go +++ b/exporter/loggingexporter/known_sync_error.go @@ -18,6 +18,7 @@ package loggingexporter // import "go.opentelemetry.io/collector/exporter/loggingexporter" import ( + "errors" "syscall" ) @@ -31,9 +32,5 @@ import ( // - sync /dev/stdout: inappropriate ioctl for device // func knownSyncError(err error) bool { - switch err { - case syscall.EINVAL, syscall.ENOTSUP, syscall.ENOTTY: - return true - } - return false + return errors.Is(err, syscall.EINVAL) || errors.Is(err, syscall.ENOTSUP) || errors.Is(err, syscall.ENOTTY) } diff --git a/exporter/loggingexporter/logging_exporter.go b/exporter/loggingexporter/logging_exporter.go index fb86e6ca7bc..359994e9f13 100644 --- a/exporter/loggingexporter/logging_exporter.go +++ b/exporter/loggingexporter/logging_exporter.go @@ -16,6 +16,7 @@ package loggingexporter // import "go.opentelemetry.io/collector/exporter/loggin import ( "context" + "errors" "os" "go.uber.org/zap" @@ -147,7 +148,8 @@ func loggerSync(logger *zap.Logger) func(context.Context) error { // Currently Sync() return a different error depending on the OS. // Since these are not actionable ignore them. err := logger.Sync() - if osErr, ok := err.(*os.PathError); ok { + osErr := &os.PathError{} + if errors.As(err, &osErr) { wrappedErr := osErr.Unwrap() if knownSyncError(wrappedErr) { err = nil diff --git a/exporter/otlphttpexporter/config.go b/exporter/otlphttpexporter/config.go index 31987e1e27a..2aa650a9667 100644 --- a/exporter/otlphttpexporter/config.go +++ b/exporter/otlphttpexporter/config.go @@ -15,7 +15,7 @@ package otlphttpexporter // import "go.opentelemetry.io/collector/exporter/otlphttpexporter" import ( - "fmt" + "errors" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/config/confighttp" @@ -44,7 +44,7 @@ var _ config.Exporter = (*Config)(nil) // Validate checks if the exporter configuration is valid func (cfg *Config) Validate() error { if cfg.Endpoint == "" && cfg.TracesEndpoint == "" && cfg.MetricsEndpoint == "" && cfg.LogsEndpoint == "" { - return fmt.Errorf("at least one endpoint must be specified") + return errors.New("at least one endpoint must be specified") } return nil } diff --git a/exporter/otlphttpexporter/otlp_test.go b/exporter/otlphttpexporter/otlp_test.go index ebd4bfdcf6e..c2f6640f41f 100644 --- a/exporter/otlphttpexporter/otlp_test.go +++ b/exporter/otlphttpexporter/otlp_test.go @@ -396,14 +396,14 @@ func TestErrorResponses(t *testing.T) { { name: "404", responseStatus: http.StatusNotFound, - err: fmt.Errorf(errMsgPrefix + "404"), + err: errors.New(errMsgPrefix + "404"), }, { name: "419", responseStatus: http.StatusTooManyRequests, responseBody: status.New(codes.InvalidArgument, "Quota exceeded"), err: exporterhelper.NewThrottleRetry( - fmt.Errorf(errMsgPrefix+"429, Message=Quota exceeded, Details=[]"), + errors.New(errMsgPrefix+"429, Message=Quota exceeded, Details=[]"), time.Duration(0)*time.Second), }, { @@ -411,7 +411,7 @@ func TestErrorResponses(t *testing.T) { responseStatus: http.StatusServiceUnavailable, responseBody: status.New(codes.InvalidArgument, "Server overloaded"), err: exporterhelper.NewThrottleRetry( - fmt.Errorf(errMsgPrefix+"503, Message=Server overloaded, Details=[]"), + errors.New(errMsgPrefix+"503, Message=Server overloaded, Details=[]"), time.Duration(0)*time.Second), }, { @@ -420,7 +420,7 @@ func TestErrorResponses(t *testing.T) { responseBody: status.New(codes.InvalidArgument, "Server overloaded"), headers: map[string]string{"Retry-After": "30"}, err: exporterhelper.NewThrottleRetry( - fmt.Errorf(errMsgPrefix+"503, Message=Server overloaded, Details=[]"), + errors.New(errMsgPrefix+"503, Message=Server overloaded, Details=[]"), time.Duration(30)*time.Second), }, } diff --git a/extension/ballastextension/config.go b/extension/ballastextension/config.go index f03f166ad78..52063e4f795 100644 --- a/extension/ballastextension/config.go +++ b/extension/ballastextension/config.go @@ -15,7 +15,7 @@ package ballastextension // import "go.opentelemetry.io/collector/extension/ballastextension" import ( - "fmt" + "errors" "go.opentelemetry.io/collector/config" ) @@ -37,7 +37,7 @@ type Config struct { func (cfg *Config) Validate() error { // no need to validate less than 0 case for uint64 if cfg.SizeInPercentage > 100 { - return fmt.Errorf("size_in_percentage is not in range 0 to 100") + return errors.New("size_in_percentage is not in range 0 to 100") } return nil } diff --git a/extension/zpagesextension/zpagesextension.go b/extension/zpagesextension/zpagesextension.go index 7cc942ead3d..da97462ee82 100644 --- a/extension/zpagesextension/zpagesextension.go +++ b/extension/zpagesextension/zpagesextension.go @@ -16,6 +16,7 @@ package zpagesextension // import "go.opentelemetry.io/collector/extension/zpage import ( "context" + "errors" "net/http" "path" @@ -88,8 +89,8 @@ func (zpe *zpagesExtension) Start(_ context.Context, host component.Host) error go func() { defer close(zpe.stopCh) - if err := zpe.server.Serve(ln); err != nil && err != http.ErrServerClosed { - host.ReportFatalError(err) + if errHTTP := zpe.server.Serve(ln); errHTTP != nil && !errors.Is(errHTTP, http.ErrServerClosed) { + host.ReportFatalError(errHTTP) } }() diff --git a/obsreport/obsreport_scraper.go b/obsreport/obsreport_scraper.go index 3c3717281bf..29df9cd395a 100644 --- a/obsreport/obsreport_scraper.go +++ b/obsreport/obsreport_scraper.go @@ -16,6 +16,7 @@ package obsreport // import "go.opentelemetry.io/collector/obsreport" import ( "context" + "errors" "go.opencensus.io/stats" "go.opencensus.io/tag" @@ -77,7 +78,8 @@ func (s *Scraper) EndMetricsOp( ) { numErroredMetrics := 0 if err != nil { - if partialErr, isPartial := err.(scrapererror.PartialScrapeError); isPartial { + var partialErr scrapererror.PartialScrapeError + if errors.As(err, &partialErr) { numErroredMetrics = partialErr.Failed } else { numErroredMetrics = numScrapedMetrics diff --git a/obsreport/obsreport_test.go b/obsreport/obsreport_test.go index 79941148030..9f7c87d5fca 100644 --- a/obsreport/obsreport_test.go +++ b/obsreport/obsreport_test.go @@ -80,13 +80,13 @@ func TestReceiveTraceDataOp(t *testing.T) { var acceptedSpans, refusedSpans int for i, span := range spans { assert.Equal(t, "receiver/"+receiver.String()+"/TraceDataReceived", span.Name()) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: acceptedSpans += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedSpansKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedSpansKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): refusedSpans += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedSpansKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedSpansKey, Value: attribute.Int64Value(int64(params[i].items))}) @@ -128,13 +128,13 @@ func TestReceiveLogsOp(t *testing.T) { var acceptedLogRecords, refusedLogRecords int for i, span := range spans { assert.Equal(t, "receiver/"+receiver.String()+"/LogsReceived", span.Name()) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: acceptedLogRecords += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedLogRecordsKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedLogRecordsKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): refusedLogRecords += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedLogRecordsKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedLogRecordsKey, Value: attribute.Int64Value(int64(params[i].items))}) @@ -176,13 +176,13 @@ func TestReceiveMetricsOp(t *testing.T) { var acceptedMetricPoints, refusedMetricPoints int for i, span := range spans { assert.Equal(t, "receiver/"+receiver.String()+"/MetricsReceived", span.Name()) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: acceptedMetricPoints += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedMetricPointsKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedMetricPointsKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): refusedMetricPoints += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedMetricPointsKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedMetricPointsKey, Value: attribute.Int64Value(int64(params[i].items))}) @@ -226,20 +226,20 @@ func TestScrapeMetricsDataOp(t *testing.T) { var scrapedMetricPoints, erroredMetricPoints int for i, span := range spans { assert.Equal(t, "scraper/"+receiver.String()+"/"+scraper.String()+"/MetricsScraped", span.Name()) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: scrapedMetricPoints += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.ScrapedMetricPointsKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.ErroredMetricPointsKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): erroredMetricPoints += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.ScrapedMetricPointsKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.ErroredMetricPointsKey, Value: attribute.Int64Value(int64(params[i].items))}) assert.Equal(t, codes.Error, span.Status().Code) assert.Equal(t, params[i].err.Error(), span.Status().Description) - case partialErrFake: + case errors.Is(params[i].err, partialErrFake): scrapedMetricPoints += params[i].items erroredMetricPoints++ require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.ScrapedMetricPointsKey, Value: attribute.Int64Value(int64(params[i].items))}) @@ -284,13 +284,13 @@ func TestExportTraceDataOp(t *testing.T) { var sentSpans, failedToSendSpans int for i, span := range spans { assert.Equal(t, "exporter/"+exporter.String()+"/traces", span.Name()) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: sentSpans += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.SentSpansKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.FailedToSendSpansKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): failedToSendSpans += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.SentSpansKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.FailedToSendSpansKey, Value: attribute.Int64Value(int64(params[i].items))}) @@ -335,13 +335,13 @@ func TestExportMetricsOp(t *testing.T) { var sentMetricPoints, failedToSendMetricPoints int for i, span := range spans { assert.Equal(t, "exporter/"+exporter.String()+"/metrics", span.Name()) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: sentMetricPoints += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.SentMetricPointsKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.FailedToSendMetricPointsKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): failedToSendMetricPoints += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.SentMetricPointsKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.FailedToSendMetricPointsKey, Value: attribute.Int64Value(int64(params[i].items))}) @@ -386,13 +386,13 @@ func TestExportLogsOp(t *testing.T) { var sentLogRecords, failedToSendLogRecords int for i, span := range spans { assert.Equal(t, "exporter/"+exporter.String()+"/logs", span.Name()) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: sentLogRecords += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.SentLogRecordsKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.FailedToSendLogRecordsKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): failedToSendLogRecords += params[i].items require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.SentLogRecordsKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.FailedToSendLogRecordsKey, Value: attribute.Int64Value(int64(params[i].items))}) @@ -443,12 +443,12 @@ func TestReceiveWithLongLivedCtx(t *testing.T) { assert.Equal(t, parentSpan.SpanContext().SpanID(), link.SpanContext.SpanID()) assert.Equal(t, "receiver/"+receiver.String()+"/TraceDataReceived", span.Name()) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.TransportKey, Value: attribute.StringValue(transport)}) - switch params[i].err { - case nil: + switch { + case params[i].err == nil: require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedSpansKey, Value: attribute.Int64Value(int64(params[i].items))}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedSpansKey, Value: attribute.Int64Value(0)}) assert.Equal(t, codes.Unset, span.Status().Code) - case errFake: + case errors.Is(params[i].err, errFake): require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.AcceptedSpansKey, Value: attribute.Int64Value(0)}) require.Contains(t, span.Attributes(), attribute.KeyValue{Key: obsmetrics.RefusedSpansKey, Value: attribute.Int64Value(int64(params[i].items))}) assert.Equal(t, codes.Error, span.Status().Code) diff --git a/processor/memorylimiterprocessor/factory_test.go b/processor/memorylimiterprocessor/factory_test.go index addab20632e..7016bc9a1c3 100644 --- a/processor/memorylimiterprocessor/factory_test.go +++ b/processor/memorylimiterprocessor/factory_test.go @@ -16,7 +16,6 @@ package memorylimiterprocessor import ( "context" - "fmt" "testing" "time" @@ -62,12 +61,11 @@ func TestCreateProcessor(t *testing.T) { pCfg.MemorySpikeLimitMiB = 1907 pCfg.CheckInterval = 100 * time.Millisecond - errorCheck := fmt.Errorf("no existing monitoring routine is running") tp, err = factory.CreateTracesProcessor(context.Background(), componenttest.NewNopProcessorCreateSettings(), cfg, consumertest.NewNop()) assert.NoError(t, err) assert.NotNil(t, tp) // test if we can shutdown a monitoring routine that has not started - assert.Error(t, errorCheck, tp.Shutdown(context.Background())) + assert.ErrorIs(t, tp.Shutdown(context.Background()), errShutdownNotStarted) assert.NoError(t, tp.Start(context.Background(), componenttest.NewNopHost())) mp, err = factory.CreateMetricsProcessor(context.Background(), componenttest.NewNopProcessorCreateSettings(), cfg, consumertest.NewNop()) @@ -84,11 +82,11 @@ func TestCreateProcessor(t *testing.T) { assert.NoError(t, tp.Shutdown(context.Background())) assert.NoError(t, mp.Shutdown(context.Background())) // verify that no monitoring routine is running - assert.Error(t, errorCheck, tp.Shutdown(context.Background())) + assert.Error(t, tp.Shutdown(context.Background())) // start and shutdown a new monitoring routine assert.NoError(t, lp.Start(context.Background(), componenttest.NewNopHost())) assert.NoError(t, lp.Shutdown(context.Background())) // calling it again should throw an error - assert.Error(t, errorCheck, lp.Shutdown(context.Background())) + assert.ErrorIs(t, lp.Shutdown(context.Background()), errShutdownNotStarted) } diff --git a/processor/memorylimiterprocessor/memorylimiter.go b/processor/memorylimiterprocessor/memorylimiter.go index cae2cb24d1f..e4def9e7c08 100644 --- a/processor/memorylimiterprocessor/memorylimiter.go +++ b/processor/memorylimiterprocessor/memorylimiter.go @@ -57,6 +57,8 @@ var ( errPercentageLimitOutOfRange = errors.New( "memoryLimitPercentage and memorySpikePercentage must be greater than zero and less than or equal to hundred", ) + + errShutdownNotStarted = errors.New("no existing monitoring routine is running") ) // make it overridable by tests @@ -164,7 +166,7 @@ func (ml *memoryLimiter) shutdown(context.Context) error { defer ml.refCounterLock.Unlock() if ml.refCounter == 0 { - return fmt.Errorf("no existing monitoring routine is running") + return errShutdownNotStarted } else if ml.refCounter == 1 { ml.ticker.Stop() } diff --git a/processor/memorylimiterprocessor/memorylimiter_test.go b/processor/memorylimiterprocessor/memorylimiter_test.go index 2398214f95c..fa19b1adbfb 100644 --- a/processor/memorylimiterprocessor/memorylimiter_test.go +++ b/processor/memorylimiterprocessor/memorylimiter_test.go @@ -93,14 +93,13 @@ func TestNew(t *testing.T) { cfg.MemoryLimitMiB = tt.args.memoryLimitMiB cfg.MemorySpikeLimitMiB = tt.args.memorySpikeLimitMiB got, err := newMemoryLimiter(componenttest.NewNopProcessorCreateSettings(), cfg) - if err != tt.wantErr { - t.Errorf("newMemoryLimiter() error = %v, wantErr %v", err, tt.wantErr) + if tt.wantErr != nil { + assert.ErrorIs(t, err, tt.wantErr) return } - if got != nil { - assert.NoError(t, got.start(context.Background(), componenttest.NewNopHost())) - assert.NoError(t, got.shutdown(context.Background())) - } + assert.NoError(t, err) + assert.NoError(t, got.start(context.Background(), componenttest.NewNopHost())) + assert.NoError(t, got.shutdown(context.Background())) }) } } diff --git a/receiver/otlpreceiver/config.go b/receiver/otlpreceiver/config.go index b6b694298f7..ed1727b23d2 100644 --- a/receiver/otlpreceiver/config.go +++ b/receiver/otlpreceiver/config.go @@ -15,7 +15,7 @@ package otlpreceiver // import "go.opentelemetry.io/collector/receiver/otlpreceiver" import ( - "fmt" + "errors" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/config/configgrpc" @@ -49,7 +49,7 @@ var _ config.Unmarshallable = (*Config)(nil) func (cfg *Config) Validate() error { if cfg.GRPC == nil && cfg.HTTP == nil { - return fmt.Errorf("must specify at least one protocol when using the OTLP receiver") + return errors.New("must specify at least one protocol when using the OTLP receiver") } return nil } @@ -57,7 +57,7 @@ func (cfg *Config) Validate() error { // Unmarshal a config.Map into the config struct. func (cfg *Config) Unmarshal(componentParser *config.Map) error { if componentParser == nil || len(componentParser.AllKeys()) == 0 { - return fmt.Errorf("empty config for OTLP receiver") + return errors.New("empty config for OTLP receiver") } // first load the config normally err := componentParser.UnmarshalExact(cfg) diff --git a/receiver/otlpreceiver/otlp.go b/receiver/otlpreceiver/otlp.go index da79c46f4fe..905d1ab1d6b 100644 --- a/receiver/otlpreceiver/otlp.go +++ b/receiver/otlpreceiver/otlp.go @@ -16,6 +16,7 @@ package otlpreceiver // import "go.opentelemetry.io/collector/receiver/otlprecei import ( "context" + "errors" "fmt" "net" "net/http" @@ -77,7 +78,7 @@ func (r *otlpReceiver) startGRPCServer(cfg *configgrpc.GRPCServerSettings, host go func() { defer r.shutdownWG.Done() - if errGrpc := r.serverGRPC.Serve(gln); errGrpc != nil && errGrpc != grpc.ErrServerStopped { + if errGrpc := r.serverGRPC.Serve(gln); errGrpc != nil && !errors.Is(errGrpc, grpc.ErrServerStopped) { host.ReportFatalError(errGrpc) } }() @@ -95,7 +96,7 @@ func (r *otlpReceiver) startHTTPServer(cfg *confighttp.HTTPServerSettings, host go func() { defer r.shutdownWG.Done() - if errHTTP := r.serverHTTP.Serve(hln); errHTTP != http.ErrServerClosed { + if errHTTP := r.serverHTTP.Serve(hln); errHTTP != nil && !errors.Is(errHTTP, http.ErrServerClosed) { host.ReportFatalError(errHTTP) } }() diff --git a/receiver/scrapererror/partialscrapeerror_test.go b/receiver/scrapererror/partialscrapeerror_test.go index 876567ecb45..618577ae864 100644 --- a/receiver/scrapererror/partialscrapeerror_test.go +++ b/receiver/scrapererror/partialscrapeerror_test.go @@ -16,7 +16,6 @@ package scrapererror import ( "errors" - "fmt" "testing" "github.com/stretchr/testify/assert" @@ -25,7 +24,7 @@ import ( func TestPartialScrapeError(t *testing.T) { failed := 2 - err := fmt.Errorf("some error") + err := errors.New("some error") partialErr := NewPartialScrapeError(err, failed) assert.Equal(t, err.Error(), partialErr.Error()) assert.Equal(t, failed, partialErr.Failed) diff --git a/receiver/scrapererror/scrapeerror_test.go b/receiver/scrapererror/scrapeerror_test.go index 16cd14e81cf..cbf4b5ca4fa 100644 --- a/receiver/scrapererror/scrapeerror_test.go +++ b/receiver/scrapererror/scrapeerror_test.go @@ -66,7 +66,7 @@ func TestScrapeErrorsCombine(t *testing.T) { errs: func() ScrapeErrors { var errs ScrapeErrors errs.AddPartial(10, errors.New("bad scrapes")) - errs.AddPartial(1, fmt.Errorf("err: %s", errors.New("bad scrape"))) + errs.AddPartial(1, fmt.Errorf("err: %w", errors.New("bad scrape"))) return errs }, expectedErr: "bad scrapes; err: bad scrape", @@ -77,7 +77,7 @@ func TestScrapeErrorsCombine(t *testing.T) { errs: func() ScrapeErrors { var errs ScrapeErrors errs.Add(errors.New("bad regular")) - errs.Add(fmt.Errorf("err: %s", errors.New("bad reg"))) + errs.Add(fmt.Errorf("err: %w", errors.New("bad reg"))) return errs }, expectedErr: "bad regular; err: bad reg", @@ -86,9 +86,9 @@ func TestScrapeErrorsCombine(t *testing.T) { errs: func() ScrapeErrors { var errs ScrapeErrors errs.AddPartial(2, errors.New("bad two scrapes")) - errs.AddPartial(10, fmt.Errorf("%d scrapes failed: %s", 10, errors.New("bad things happened"))) + errs.AddPartial(10, fmt.Errorf("%d scrapes failed: %w", 10, errors.New("bad things happened"))) errs.Add(errors.New("bad event")) - errs.Add(fmt.Errorf("event: %s", errors.New("something happened"))) + errs.Add(fmt.Errorf("event: %w", errors.New("something happened"))) return errs }, expectedErr: "bad two scrapes; 10 scrapes failed: bad things happened; bad event; event: something happened", @@ -105,8 +105,8 @@ func TestScrapeErrorsCombine(t *testing.T) { } assert.EqualError(t, scrapeErrs.Combine(), tc.expectedErr) if tc.expectedScrape { - partialScrapeErr, ok := scrapeErrs.Combine().(PartialScrapeError) - if !ok { + var partialScrapeErr PartialScrapeError + if !errors.As(scrapeErrs.Combine(), &partialScrapeErr) { t.Errorf("%+v.Combine() = %q. Want: PartialScrapeError", scrapeErrs, scrapeErrs.Combine()) } else if tc.expectedFailedCount != partialScrapeErr.Failed { t.Errorf("%+v.Combine().Failed. Got %d Failed count. Want: %d", scrapeErrs, partialScrapeErr.Failed, tc.expectedFailedCount) diff --git a/receiver/scraperhelper/scrapercontroller_test.go b/receiver/scraperhelper/scrapercontroller_test.go index 1c283952be4..fc5ee174e60 100644 --- a/receiver/scraperhelper/scrapercontroller_test.go +++ b/receiver/scraperhelper/scrapercontroller_test.go @@ -317,7 +317,8 @@ func assertScraperViews(t *testing.T, tt obsreporttest.TestTelemetry, expectedEr expectedScraped := int64(sink.DataPointCount()) expectedErrored := int64(0) if expectedErr != nil { - if partialError, isPartial := expectedErr.(scrapererror.PartialScrapeError); isPartial { + var partialError scrapererror.PartialScrapeError + if errors.As(expectedErr, &partialError) { expectedErrored = int64(partialError.Failed) } else { expectedScraped = int64(0) diff --git a/service/internal/builder/exporters_builder.go b/service/internal/builder/exporters_builder.go index 5576ac4009a..cbfcd1663f6 100644 --- a/service/internal/builder/exporters_builder.go +++ b/service/internal/builder/exporters_builder.go @@ -16,6 +16,7 @@ package builder // import "go.opentelemetry.io/collector/service/internal/builde import ( "context" + "errors" "fmt" "go.uber.org/multierr" @@ -237,7 +238,7 @@ func buildExporter( } if err != nil { - if err == componenterror.ErrDataTypeIsNotSupported { + if errors.Is(err, componenterror.ErrDataTypeIsNotSupported) { // Could not create because this exporter does not support this data type. return nil, exporterTypeMismatchErr(cfg, pipelineID, dataType) } diff --git a/service/internal/builder/receivers_builder.go b/service/internal/builder/receivers_builder.go index 777aafe8b79..f987a11e738 100644 --- a/service/internal/builder/receivers_builder.go +++ b/service/internal/builder/receivers_builder.go @@ -108,7 +108,7 @@ func BuildReceivers( rcv, err := rb.buildReceiver(context.Background(), set, recvID, recvCfg) if err != nil { - if err == errUnusedReceiver { + if errors.Is(err, errUnusedReceiver) { set.Logger.Info("Ignoring receiver as it is not used by any pipeline") continue } @@ -195,7 +195,7 @@ func attachReceiverToPipelines( } if err != nil { - if err == componenterror.ErrDataTypeIsNotSupported { + if errors.Is(err, componenterror.ErrDataTypeIsNotSupported) { return fmt.Errorf( "receiver %v does not support %s but it was used in a %s pipeline", id, dataType, dataType) diff --git a/service/internal/configunmarshaler/defaultunmarshaler.go b/service/internal/configunmarshaler/defaultunmarshaler.go index 3e75f59d181..4a3c5cce553 100644 --- a/service/internal/configunmarshaler/defaultunmarshaler.go +++ b/service/internal/configunmarshaler/defaultunmarshaler.go @@ -91,7 +91,7 @@ func (ConfigUnmarshaler) Unmarshal(v *config.Map, factories component.Factories) // Unmarshal top level sections and validate. rawCfg := configSettings{} if err := v.UnmarshalExact(&rawCfg); err != nil { - return nil, &configError{ + return nil, configError{ error: fmt.Errorf("error reading top level configuration sections: %w", err), code: errUnmarshalTopLevelStructure, } @@ -99,35 +99,35 @@ func (ConfigUnmarshaler) Unmarshal(v *config.Map, factories component.Factories) var err error if cfg.Extensions, err = unmarshalExtensions(rawCfg.Extensions, factories.Extensions); err != nil { - return nil, &configError{ + return nil, configError{ error: err, code: errUnmarshalExtension, } } if cfg.Receivers, err = unmarshalReceivers(rawCfg.Receivers, factories.Receivers); err != nil { - return nil, &configError{ + return nil, configError{ error: err, code: errUnmarshalReceiver, } } if cfg.Processors, err = unmarshalProcessors(rawCfg.Processors, factories.Processors); err != nil { - return nil, &configError{ + return nil, configError{ error: err, code: errUnmarshalProcessor, } } if cfg.Exporters, err = unmarshalExporters(rawCfg.Exporters, factories.Exporters); err != nil { - return nil, &configError{ + return nil, configError{ error: err, code: errUnmarshalExporter, } } if cfg.Service, err = unmarshalService(rawCfg.Service); err != nil { - return nil, &configError{ + return nil, configError{ error: err, code: errUnmarshalService, } diff --git a/service/internal/configunmarshaler/defaultunmarshaler_test.go b/service/internal/configunmarshaler/defaultunmarshaler_test.go index 17cacd228ae..84f10cb2f7f 100644 --- a/service/internal/configunmarshaler/defaultunmarshaler_test.go +++ b/service/internal/configunmarshaler/defaultunmarshaler_test.go @@ -15,6 +15,7 @@ package configunmarshaler import ( + "errors" "path/filepath" "testing" @@ -194,8 +195,8 @@ func TestDecodeConfig_Invalid(t *testing.T) { _, err := loadConfigFile(t, filepath.Join("testdata", test.name+".yaml"), factories) require.Error(t, err) if test.expected != 0 { - cfgErr, ok := err.(*configError) - if !ok { + var cfgErr configError + if !errors.As(err, &cfgErr) { t.Errorf("expected config error code %v but got a different error '%v'", test.expected, err) } else { assert.Equal(t, test.expected, cfgErr.code, err) diff --git a/service/internal/extensions/extensions_test.go b/service/internal/extensions/extensions_test.go index a0cb61c8658..11dc8735147 100644 --- a/service/internal/extensions/extensions_test.go +++ b/service/internal/extensions/extensions_test.go @@ -16,7 +16,7 @@ package extensions import ( "context" - "fmt" + "errors" "testing" "github.com/stretchr/testify/assert" @@ -34,7 +34,7 @@ func TestService_setupExtensions(t *testing.T) { return &cfg }, func(ctx context.Context, set component.ExtensionCreateSettings, extension config.Extension) (component.Extension, error) { - return nil, fmt.Errorf("cannot create \"err\" extension type") + return nil, errors.New("cannot create \"err\" extension type") }, ) errExtensionConfig := errExtensionFactory.CreateDefaultConfig() diff --git a/service/mapresolver.go b/service/mapresolver.go index eb9bfdf1b8b..6c40b9861b0 100644 --- a/service/mapresolver.go +++ b/service/mapresolver.go @@ -16,6 +16,7 @@ package service // import "go.opentelemetry.io/collector/service" import ( "context" + "errors" "fmt" "regexp" "strings" @@ -63,11 +64,11 @@ type mapResolver struct { // (see https://datatracker.ietf.org/doc/html/rfc3986). An empty "" defaults to "file" schema. func newMapResolver(uris []string, mapProviders map[string]config.MapProvider, mapConverters []config.MapConverterFunc) (*mapResolver, error) { if len(uris) == 0 { - return nil, fmt.Errorf("invalid map resolver config: no URIs") + return nil, errors.New("invalid map resolver config: no URIs") } if len(mapProviders) == 0 { - return nil, fmt.Errorf("invalid map resolver config: no map providers") + return nil, errors.New("invalid map resolver config: no map providers") } // Safe copy, ensures the slices and maps cannot be changed from the caller. @@ -166,7 +167,7 @@ func (mr *mapResolver) Shutdown(ctx context.Context) error { func (mr *mapResolver) onChange(event *config.ChangeEvent) { // TODO: Remove check for configsource.ErrSessionClosed when providers updated to not call onChange when closed. - if event.Error != configsource.ErrSessionClosed { + if !errors.Is(event.Error, configsource.ErrSessionClosed) { mr.watcher <- event.Error } } diff --git a/service/telemetry.go b/service/telemetry.go index d45c42e56d6..fb7cc6173af 100644 --- a/service/telemetry.go +++ b/service/telemetry.go @@ -15,6 +15,7 @@ package service // import "go.opentelemetry.io/collector/service" import ( + "errors" "fmt" "net/http" "strings" @@ -143,8 +144,7 @@ func (tel *colTelemetry) initOnce(col *Collector) error { } go func() { - serveErr := tel.server.ListenAndServe() - if serveErr != nil && serveErr != http.ErrServerClosed { + if serveErr := tel.server.ListenAndServe(); serveErr != nil && !errors.Is(serveErr, http.ErrServerClosed) { col.asyncErrorChannel <- serveErr } }() From c34f23c34ec1b1e5c43007706abc9cc8518daef2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 May 2022 11:09:55 -0700 Subject: [PATCH 37/67] Bump github.com/golangci/golangci-lint in /internal/tools (#5368) Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.46.0 to 1.46.1. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](https://github.com/golangci/golangci-lint/compare/v1.46.0...v1.46.1) --- updated-dependencies: - dependency-name: github.com/golangci/golangci-lint dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- internal/tools/go.mod | 4 +-- internal/tools/go.sum | 59 ++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 57 insertions(+), 6 deletions(-) diff --git a/internal/tools/go.mod b/internal/tools/go.mod index ebe91e6b493..8e237cd5de6 100644 --- a/internal/tools/go.mod +++ b/internal/tools/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/client9/misspell v0.3.4 - github.com/golangci/golangci-lint v1.46.0 + github.com/golangci/golangci-lint v1.46.1 github.com/google/addlicense v1.0.0 github.com/jcchavezs/porto v0.4.0 github.com/ory/go-acc v0.2.8 @@ -112,7 +112,7 @@ require ( github.com/ldez/gomoddirectives v0.2.3 // indirect github.com/ldez/tagliatelle v0.3.1 // indirect github.com/leonklingele/grouper v1.1.0 // indirect - github.com/lufeee/execinquery v1.0.0 // indirect + github.com/lufeee/execinquery v1.2.0 // indirect github.com/magiconair/properties v1.8.6 // indirect github.com/maratori/testpackage v1.0.1 // indirect github.com/matoous/godox v0.0.0-20210227103229-6504466cf951 // indirect diff --git a/internal/tools/go.sum b/internal/tools/go.sum index 9f126356002..aa69d40bc8c 100644 --- a/internal/tools/go.sum +++ b/internal/tools/go.sum @@ -31,6 +31,7 @@ cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aD cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= @@ -64,6 +65,7 @@ github.com/Antonboom/errname v0.1.6/go.mod h1:7lz79JAnuoMNDAWE9MeeIr1/c/VpSUWatB github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -98,6 +100,8 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= +github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= @@ -229,6 +233,7 @@ github.com/firefart/nonamedreturns v1.0.1 h1:fSvcq6ZpK/uBAgJEGMvzErlzyM4NELLqqdT github.com/firefart/nonamedreturns v1.0.1/go.mod h1:D3dpIBojGGNh5UfElmwPu73SwDCm+VKhHYqwlNOk2uQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.2 h1:SPb1KFFmM+ybpEjPUhCCkZOM5xlovT5UbrMvWnXyBns= +github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= @@ -262,6 +267,7 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= @@ -340,8 +346,8 @@ github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6 github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a h1:iR3fYXUjHCR97qWS8ch1y9zPNsgXThGwjKPrYfqMPks= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= -github.com/golangci/golangci-lint v1.46.0 h1:uz9AtEcIP63FH+FIyuAXcQGVQO4vCUavEsMTJpPeD4s= -github.com/golangci/golangci-lint v1.46.0/go.mod h1:IJpcNOUfx/XLRwE95FHQ6QtbhYwwqcm0H5QkwUfF4ZE= +github.com/golangci/golangci-lint v1.46.1 h1:sc3XD0pprdZuqZkl6snUfnmUT1XW4dTTyLeOBvxn+3M= +github.com/golangci/golangci-lint v1.46.1/go.mod h1:wX6nN6s18dtWgm5Hjmes0sZKOxi+32KCI+OLVQCyhtM= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= @@ -426,6 +432,7 @@ github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= +github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= @@ -438,6 +445,7 @@ github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3 github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= +github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= @@ -447,6 +455,7 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= @@ -480,8 +489,11 @@ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uG github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= @@ -516,6 +528,7 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfC github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= +github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -541,6 +554,8 @@ github.com/kisielk/errcheck v1.6.0 h1:YTDO4pNy7AUN/021p+JGHycQyYNIyMoenM1YDVK6Rl github.com/kisielk/errcheck v1.6.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= +github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -550,6 +565,7 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -572,8 +588,9 @@ github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lufeee/execinquery v1.0.0 h1:1XUTuLIVPDlFvUU3LXmmZwHDsolsxXnY67lzhpeqe0I= -github.com/lufeee/execinquery v1.0.0/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/lufeee/execinquery v1.2.0 h1:07LBuxOFCLoNXUuwnRxL1T+ef8rI0gYZRBe2yh9BflU= +github.com/lufeee/execinquery v1.2.0/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -616,6 +633,7 @@ github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aks github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= github.com/mgechev/revive v1.2.1 h1:GjFml7ZsoR0IrQ2E2YIvWFNS5GPDV7xNwvA5GM1HZC4= github.com/mgechev/revive v1.2.1/go.mod h1:+Ro3wqY4vakcYNtkBWdZC7dBg1xSB6sp054wWwmeFm0= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= @@ -627,6 +645,7 @@ github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0 github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= @@ -724,6 +743,7 @@ github.com/polyfloyd/go-errorlint v0.0.0-20211125173453-6d6d39c5bb8b h1:/BDyEJWL github.com/polyfloyd/go-errorlint v0.0.0-20211125173453-6d6d39c5bb8b/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= @@ -762,6 +782,7 @@ github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a h1:sWFav github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a/go.mod h1:VMX+OnnSw4LicdiEGtRSD/1X8kW7GuEscjYNr4cOIT4= github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/dsl v0.3.16/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/dsl v0.3.19/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 h1:PDWGei+Rf2bBiuZIbZmM20J2ftEy9IeUCHA8HbQqed8= @@ -770,9 +791,13 @@ github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= +github.com/remyoudompheng/go-dbus v0.0.0-20121104212943-b7232d34b1d5/go.mod h1:+u151txRmLpwxBmpYn9z3d1sdJdjRPQpsXuYeY9jNls= +github.com/remyoudompheng/go-liblzma v0.0.0-20190506200333-81bf2d431b96/go.mod h1:90HvCY7+oHHUKkbeMCiHt1WuFR2/hPJ9QrljDG+v6ls= +github.com/remyoudompheng/go-misc v0.0.0-20190427085024-2d6ac652a50e/go.mod h1:80FQABjoFzZ2M5uEa6FUaJYEmqU2UOKojlFVak1UAwI= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= @@ -784,6 +809,7 @@ github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoL github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= github.com/sagikazarmark/crypt v0.5.0/go.mod h1:l+nzl7KWh51rpzp2h7t4MZWyiEWdhNpOAnclKvg+mdA= github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= @@ -795,6 +821,7 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= +github.com/shirou/gopsutil/v3 v3.22.4/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= @@ -831,6 +858,7 @@ github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= @@ -842,6 +870,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= github.com/spf13/viper v1.11.0 h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44= github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUsX7Zk= @@ -882,6 +911,8 @@ github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= +github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= +github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -901,6 +932,10 @@ github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijb github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/uudashr/gocognit v1.0.5 h1:rrSex7oHr3/pPLQ0xoWq108XMU8s678FJcQ+aSfOHa4= github.com/uudashr/gocognit v1.0.5/go.mod h1:wgYz0mitoKOTysqxTDMOUXg+Jb5SvtihkfmugIZYpEA= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= +github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= +github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtcmPA3uNZBI33/qF//HAAs3MawDjRa0= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad/go.mod h1:Hy8o65+MXnS6EwGElrSRjUzQDLXreJlzYLlWiHtt8hM= @@ -923,6 +958,7 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= gitlab.com/bosi/decorder v0.2.1 h1:ehqZe8hI4w7O4b1vgsDZw1YU1PE7iJXrQWFMsocbQ1w= gitlab.com/bosi/decorder v0.2.1/go.mod h1:6C/nhLSbF6qZbYD8bRmISBwc6vcWdNsiIBkRvjJFrH0= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= @@ -966,6 +1002,7 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -979,6 +1016,7 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= @@ -1031,6 +1069,7 @@ golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1077,6 +1116,7 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -1126,6 +1166,7 @@ golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1174,6 +1215,7 @@ golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1207,6 +1249,7 @@ golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1216,6 +1259,8 @@ golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220403020550-483a9cbc67c0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 h1:xHms4gcpe1YE7A3yIllJXP16CMAGuqwO2lX1mTyyRRc= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1244,6 +1289,7 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/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-20190228203856-589c23e65e65/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -1315,6 +1361,7 @@ golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82u golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201028025901-8cd080b735b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -1376,6 +1423,7 @@ google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqiv google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= @@ -1457,6 +1505,8 @@ google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -1499,6 +1549,7 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= From fb956f688b205d9daf50f86b5343de219a32b849 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 May 2022 11:10:34 -0700 Subject: [PATCH 38/67] Bump github.com/spf13/cast from 1.4.1 to 1.5.0 (#5367) Bumps [github.com/spf13/cast](https://github.com/spf13/cast) from 1.4.1 to 1.5.0. - [Release notes](https://github.com/spf13/cast/releases) - [Commits](https://github.com/spf13/cast/compare/v1.4.1...v1.5.0) --- updated-dependencies: - dependency-name: github.com/spf13/cast dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8f415529451..2bfa7821e08 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/prometheus/common v0.34.0 github.com/rs/cors v1.8.2 github.com/shirou/gopsutil/v3 v3.22.4 - github.com/spf13/cast v1.4.1 + github.com/spf13/cast v1.5.0 github.com/spf13/cobra v1.4.0 github.com/stretchr/testify v1.7.1 go.opencensus.io v0.23.0 diff --git a/go.sum b/go.sum index 4da6b4d95f5..a4e65727942 100644 --- a/go.sum +++ b/go.sum @@ -67,6 +67,7 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= @@ -102,6 +103,8 @@ github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/frankban/quicktest v1.4.0/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ= github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= +github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= +github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= @@ -353,8 +356,8 @@ github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPx github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= -github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA= -github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= +github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= From e0aa126403b68487de059e36f1beba177dc206dd Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Mon, 16 May 2022 12:19:42 -0700 Subject: [PATCH 39/67] Bump all deps, Monday, May, 16th (#5372) Signed-off-by: Bogdan Drutu --- cmd/otelcorecol/go.mod | 4 ++-- cmd/otelcorecol/go.sum | 7 +++--- go.mod | 4 ++-- go.sum | 9 ++++---- internal/tools/go.sum | 51 ------------------------------------------ pdata/go.mod | 2 +- pdata/go.sum | 4 ++-- 7 files changed, 15 insertions(+), 66 deletions(-) diff --git a/cmd/otelcorecol/go.mod b/cmd/otelcorecol/go.mod index b7f662a1a19..2085d1d013b 100644 --- a/cmd/otelcorecol/go.mod +++ b/cmd/otelcorecol/go.mod @@ -29,7 +29,7 @@ require ( github.com/google/uuid v1.3.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect - github.com/klauspost/compress v1.15.3 // indirect + github.com/klauspost/compress v1.15.4 // indirect github.com/knadh/koanf v1.4.1 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/magiconair/properties v1.8.6 // indirect @@ -72,7 +72,7 @@ require ( golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect golang.org/x/text v0.3.7 // indirect google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect - google.golang.org/grpc v1.46.0 // indirect + google.golang.org/grpc v1.46.2 // indirect google.golang.org/protobuf v1.28.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect diff --git a/cmd/otelcorecol/go.sum b/cmd/otelcorecol/go.sum index f575f94e498..4afa0ba6035 100644 --- a/cmd/otelcorecol/go.sum +++ b/cmd/otelcorecol/go.sum @@ -240,8 +240,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8 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/klauspost/compress v1.14.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.3 h1:wmfu2iqj9q22SyMINp1uQ8C2/V4M1phJdmH9fG4nba0= -github.com/klauspost/compress v1.15.3/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= +github.com/klauspost/compress v1.15.4 h1:1kn4/7MepF/CHmYub99/nNX8az0IJjfSOU/jbnTVfqQ= +github.com/klauspost/compress v1.15.4/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/knadh/koanf v1.4.1 h1:Z0VGW/uo8NJmjd+L1Dc3S5frq6c62w5xQ9Yf4Mg3wFQ= github.com/knadh/koanf v1.4.1/go.mod h1:1cfH5223ZeZUOs8FU2UdTmaNfHpqgtjV0+NHjRO43gs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -696,8 +696,9 @@ google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.46.0 h1:oCjezcn6g6A75TGoKYBPgKmVBLexhYLM6MebdrPApP8= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2 h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ= +google.golang.org/grpc v1.46.2/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= diff --git a/go.mod b/go.mod index 2bfa7821e08..dd6e05720d7 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/golang/snappy v0.0.4 github.com/google/uuid v1.3.0 - github.com/klauspost/compress v1.15.3 + github.com/klauspost/compress v1.15.4 github.com/knadh/koanf v1.4.1 github.com/magiconair/properties v1.8.6 github.com/mitchellh/mapstructure v1.5.0 @@ -37,7 +37,7 @@ require ( golang.org/x/net v0.0.0-20220225172249-27dd8689420f golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa - google.golang.org/grpc v1.46.0 + google.golang.org/grpc v1.46.2 google.golang.org/protobuf v1.28.0 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index a4e65727942..1fec8a688af 100644 --- a/go.sum +++ b/go.sum @@ -67,7 +67,6 @@ github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kB github.com/cenkalti/backoff/v4 v4.1.3 h1:cFAlzYUlVYDysBEH2T5hyJZMh3+5+WCBvSnK6Q8UtC4= github.com/cenkalti/backoff/v4 v4.1.3/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= @@ -104,7 +103,6 @@ github.com/felixge/httpsnoop v1.0.2/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw github.com/frankban/quicktest v1.4.0/go.mod h1:36zfPVQyHxymz4cH7wlDmVwDrJuljRB60qkgn7rorfQ= github.com/frankban/quicktest v1.14.0/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= -github.com/frankban/quicktest v1.14.3/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= @@ -243,8 +241,8 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8 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/klauspost/compress v1.14.1/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.15.3 h1:wmfu2iqj9q22SyMINp1uQ8C2/V4M1phJdmH9fG4nba0= -github.com/klauspost/compress v1.15.3/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= +github.com/klauspost/compress v1.15.4 h1:1kn4/7MepF/CHmYub99/nNX8az0IJjfSOU/jbnTVfqQ= +github.com/klauspost/compress v1.15.4/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= github.com/knadh/koanf v1.4.1 h1:Z0VGW/uo8NJmjd+L1Dc3S5frq6c62w5xQ9Yf4Mg3wFQ= github.com/knadh/koanf v1.4.1/go.mod h1:1cfH5223ZeZUOs8FU2UdTmaNfHpqgtjV0+NHjRO43gs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -701,8 +699,9 @@ google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= -google.golang.org/grpc v1.46.0 h1:oCjezcn6g6A75TGoKYBPgKmVBLexhYLM6MebdrPApP8= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2 h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ= +google.golang.org/grpc v1.46.2/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= diff --git a/internal/tools/go.sum b/internal/tools/go.sum index aa69d40bc8c..dee16a99a15 100644 --- a/internal/tools/go.sum +++ b/internal/tools/go.sum @@ -31,7 +31,6 @@ cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aD cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= @@ -65,7 +64,6 @@ github.com/Antonboom/errname v0.1.6/go.mod h1:7lz79JAnuoMNDAWE9MeeIr1/c/VpSUWatB github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -100,8 +98,6 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= -github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= @@ -233,7 +229,6 @@ github.com/firefart/nonamedreturns v1.0.1 h1:fSvcq6ZpK/uBAgJEGMvzErlzyM4NELLqqdT github.com/firefart/nonamedreturns v1.0.1/go.mod h1:D3dpIBojGGNh5UfElmwPu73SwDCm+VKhHYqwlNOk2uQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.2 h1:SPb1KFFmM+ybpEjPUhCCkZOM5xlovT5UbrMvWnXyBns= -github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= @@ -267,7 +262,6 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= @@ -432,7 +426,6 @@ github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= -github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= @@ -445,7 +438,6 @@ github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3 github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= -github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= @@ -455,7 +447,6 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= @@ -489,11 +480,8 @@ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uG github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= @@ -528,7 +516,6 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfC github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -554,8 +541,6 @@ github.com/kisielk/errcheck v1.6.0 h1:YTDO4pNy7AUN/021p+JGHycQyYNIyMoenM1YDVK6Rl github.com/kisielk/errcheck v1.6.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -565,7 +550,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -590,7 +574,6 @@ github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lufeee/execinquery v1.2.0 h1:07LBuxOFCLoNXUuwnRxL1T+ef8rI0gYZRBe2yh9BflU= github.com/lufeee/execinquery v1.2.0/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -633,7 +616,6 @@ github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aks github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= github.com/mgechev/revive v1.2.1 h1:GjFml7ZsoR0IrQ2E2YIvWFNS5GPDV7xNwvA5GM1HZC4= github.com/mgechev/revive v1.2.1/go.mod h1:+Ro3wqY4vakcYNtkBWdZC7dBg1xSB6sp054wWwmeFm0= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= @@ -645,7 +627,6 @@ github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0 github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= @@ -743,7 +724,6 @@ github.com/polyfloyd/go-errorlint v0.0.0-20211125173453-6d6d39c5bb8b h1:/BDyEJWL github.com/polyfloyd/go-errorlint v0.0.0-20211125173453-6d6d39c5bb8b/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= @@ -782,7 +762,6 @@ github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a h1:sWFav github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a/go.mod h1:VMX+OnnSw4LicdiEGtRSD/1X8kW7GuEscjYNr4cOIT4= github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/dsl v0.3.16/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.19/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 h1:PDWGei+Rf2bBiuZIbZmM20J2ftEy9IeUCHA8HbQqed8= @@ -791,13 +770,9 @@ github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= -github.com/remyoudompheng/go-dbus v0.0.0-20121104212943-b7232d34b1d5/go.mod h1:+u151txRmLpwxBmpYn9z3d1sdJdjRPQpsXuYeY9jNls= -github.com/remyoudompheng/go-liblzma v0.0.0-20190506200333-81bf2d431b96/go.mod h1:90HvCY7+oHHUKkbeMCiHt1WuFR2/hPJ9QrljDG+v6ls= -github.com/remyoudompheng/go-misc v0.0.0-20190427085024-2d6ac652a50e/go.mod h1:80FQABjoFzZ2M5uEa6FUaJYEmqU2UOKojlFVak1UAwI= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= @@ -809,7 +784,6 @@ github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoL github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= github.com/sagikazarmark/crypt v0.5.0/go.mod h1:l+nzl7KWh51rpzp2h7t4MZWyiEWdhNpOAnclKvg+mdA= github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= @@ -821,7 +795,6 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= -github.com/shirou/gopsutil/v3 v3.22.4/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= @@ -858,7 +831,6 @@ github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= @@ -870,7 +842,6 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= github.com/spf13/viper v1.11.0 h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44= github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUsX7Zk= @@ -911,8 +882,6 @@ github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -932,10 +901,6 @@ github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijb github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/uudashr/gocognit v1.0.5 h1:rrSex7oHr3/pPLQ0xoWq108XMU8s678FJcQ+aSfOHa4= github.com/uudashr/gocognit v1.0.5/go.mod h1:wgYz0mitoKOTysqxTDMOUXg+Jb5SvtihkfmugIZYpEA= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= -github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= -github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtcmPA3uNZBI33/qF//HAAs3MawDjRa0= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad/go.mod h1:Hy8o65+MXnS6EwGElrSRjUzQDLXreJlzYLlWiHtt8hM= @@ -958,7 +923,6 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= gitlab.com/bosi/decorder v0.2.1 h1:ehqZe8hI4w7O4b1vgsDZw1YU1PE7iJXrQWFMsocbQ1w= gitlab.com/bosi/decorder v0.2.1/go.mod h1:6C/nhLSbF6qZbYD8bRmISBwc6vcWdNsiIBkRvjJFrH0= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= @@ -1002,7 +966,6 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -1016,7 +979,6 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= @@ -1069,7 +1031,6 @@ golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1116,7 +1077,6 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -1166,7 +1126,6 @@ golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1215,7 +1174,6 @@ golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1249,7 +1207,6 @@ golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1259,8 +1216,6 @@ golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220403020550-483a9cbc67c0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 h1:xHms4gcpe1YE7A3yIllJXP16CMAGuqwO2lX1mTyyRRc= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1289,7 +1244,6 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/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-20190228203856-589c23e65e65/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -1361,7 +1315,6 @@ golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82u golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201028025901-8cd080b735b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -1423,7 +1376,6 @@ google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqiv google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= @@ -1505,8 +1457,6 @@ google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -1549,7 +1499,6 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= diff --git a/pdata/go.mod b/pdata/go.mod index b3307d1c4fe..f0d9b56197a 100644 --- a/pdata/go.mod +++ b/pdata/go.mod @@ -6,7 +6,7 @@ require ( github.com/gogo/protobuf v1.3.2 github.com/json-iterator/go v1.1.12 github.com/stretchr/testify v1.7.1 - google.golang.org/grpc v1.46.0 + google.golang.org/grpc v1.46.2 google.golang.org/protobuf v1.28.0 ) diff --git a/pdata/go.sum b/pdata/go.sum index 745e4cde04f..fa3e9a977f6 100644 --- a/pdata/go.sum +++ b/pdata/go.sum @@ -135,8 +135,8 @@ google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQ 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/grpc v1.46.2 h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ= +google.golang.org/grpc v1.46.2/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= From 1d00590f99aab060c13ab4390f2672b3bf139888 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Mon, 16 May 2022 12:25:07 -0700 Subject: [PATCH 40/67] Remove access to deprecated members of the config.Retrieved struct (#5363) Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 1 + config/mapprovider.go | 14 ++++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7de3042b21f..352ca2dd4d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Remove `configunmarshaler.Unmarshaler` interface, per deprecation comment (#5348) - Remove deprecated pdata funcs/structs from v0.50.0 (#5345) - Remove derecated featuregate funcs/structs from v0.50.0 (#5346) +- Remove access to deprecated members of the config.Retrieved struct (#5363) ### 🚩 Deprecations 🚩 diff --git a/config/mapprovider.go b/config/mapprovider.go index d7372c45b30..e6a9884014f 100644 --- a/config/mapprovider.go +++ b/config/mapprovider.go @@ -81,10 +81,8 @@ type ChangeEvent struct { // Retrieved holds the result of a call to the Retrieve method of a Provider object. type Retrieved struct { - // Deprecated: [v0.50.0] Use NewRetrievedFromMap to initialize, and Retrieved.AsMap to access. - *Map - // Deprecated: [v0.50.0] Use NewRetrievedFromMap to initialize, and Retrieved.Close to access. - CloseFunc + cfgMap *Map + closeFunc CloseFunc } type retrievedSettings struct { @@ -112,12 +110,12 @@ func NewRetrievedFromMap(cfgMap *Map, opts ...RetrievedOption) Retrieved { for _, opt := range opts { opt(&set) } - return Retrieved{Map: cfgMap, CloseFunc: set.closeFunc} + return Retrieved{cfgMap: cfgMap, closeFunc: set.closeFunc} } // AsMap returns the retrieved configuration parsed as a Map. func (r Retrieved) AsMap() (*Map, error) { - return r.Map, nil + return r.cfgMap, nil } // Close and release any watchers that MapProvider.Retrieve may have created. @@ -127,10 +125,10 @@ func (r Retrieved) AsMap() (*Map, error) { // // Should never be called concurrently with itself. func (r Retrieved) Close(ctx context.Context) error { - if r.CloseFunc == nil { + if r.closeFunc == nil { return nil } - return r.CloseFunc(ctx) + return r.closeFunc(ctx) } // CloseFunc a function equivalent to Retrieved.Close. From 8505a3d1c22cc503e6f7c85f801d1cab9454091e Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 17 May 2022 09:16:40 -0700 Subject: [PATCH 41/67] Update docs/release to not manually change file, but re-run the builder (#5341) Signed-off-by: Bogdan Drutu --- docs/release.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/release.md b/docs/release.md index 91741def370..6204e31f28b 100644 --- a/docs/release.md +++ b/docs/release.md @@ -45,10 +45,8 @@ It is possible that a core approver isn't a contrib approver. In that case, the * Update the collector version in the collector builder to the new release in `./cmd/builder/internal/builder/config.go`. - * Update the collector version in the manifest used by `make run` to the new release in `./cmd/otelcorecol/builder-config.yaml`. + * Update the collector version in the manifest used by `make run` to the new release in `./cmd/otelcorecol/builder-config.yaml` and run `make genotelcorecol`. - * Update the collector version in the `cmd/otelcorecol/main.go`. - * Update the collector version in the `examples/k8s/otel-config.yaml` * Submit a PR with the changes and get the PR approved and merged. From 7e97a217e2c16d8e86d222acb972dd64812f7f31 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 17 May 2022 10:06:51 -0700 Subject: [PATCH 42/67] Update CI targets to use go 1.18 when possible (#5328) Signed-off-by: Bogdan Drutu --- .github/workflows/api-compatibility.yml | 2 +- .github/workflows/build-and-test-windows.yaml | 2 +- .github/workflows/build-and-test.yml | 8 ++++---- .github/workflows/builder-integration-test.yaml | 2 +- .github/workflows/builder-release.yaml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/contrib-tests.yml | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/api-compatibility.yml b/.github/workflows/api-compatibility.yml index e0106600bf6..7afd68138b8 100644 --- a/.github/workflows/api-compatibility.yml +++ b/.github/workflows/api-compatibility.yml @@ -31,7 +31,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Install-Tools run: | diff --git a/.github/workflows/build-and-test-windows.yaml b/.github/workflows/build-and-test-windows.yaml index 533d2ed0bfe..8072d1a22de 100644 --- a/.github/workflows/build-and-test-windows.yaml +++ b/.github/workflows/build-and-test-windows.yaml @@ -15,7 +15,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Cache Go uses: actions/cache@v3 env: diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 44c26bc2a57..ad9a1c85824 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -63,7 +63,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -139,7 +139,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Cache Go id: go-cache uses: actions/cache@v3 @@ -195,7 +195,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Cache Go id: go-cache uses: actions/cache@v3 diff --git a/.github/workflows/builder-integration-test.yaml b/.github/workflows/builder-integration-test.yaml index 6d80c721732..1a512410fbd 100644 --- a/.github/workflows/builder-integration-test.yaml +++ b/.github/workflows/builder-integration-test.yaml @@ -30,6 +30,6 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Test run: cd ./cmd/builder && ./test/test.sh diff --git a/.github/workflows/builder-release.yaml b/.github/workflows/builder-release.yaml index b1ddb44a606..5cb05b22696 100644 --- a/.github/workflows/builder-release.yaml +++ b/.github/workflows/builder-release.yaml @@ -16,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 730b813fd8a..40be552d432 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/contrib-tests.yml b/.github/workflows/contrib-tests.yml index 83e87ff0a8b..c82dcbf0d7e 100644 --- a/.github/workflows/contrib-tests.yml +++ b/.github/workflows/contrib-tests.yml @@ -15,7 +15,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v3 with: - go-version: 1.17 + go-version: 1.18 - name: Run Contrib Tests run: | contrib_path=/tmp/opentelemetry-collector-contrib From 19cc093b42cb53ec0c7bfd2b9579619e8d89891d Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 17 May 2022 12:13:15 -0700 Subject: [PATCH 43/67] [docs] add stability documentation (#5379) This moves the stability level documentation from the contrib repo to the core repo. --- README.md | 56 +++++++++++++++++++++++++++---------------------------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index b119153857a..142e57de603 100644 --- a/README.md +++ b/README.md @@ -63,37 +63,35 @@ Objectives: - Extensible: Customizable without touching the core code. - Unified: Single codebase, deployable as an agent or collector with support for traces, metrics and logs. -## Status +## Stability levels The collector components and implementation are in different stages of stability, and usually split between -functionality and configuration: - -| Signal | Component | Status | -|--------|-----------|--------| -|Traces | OTLP protocol | Stable | -|| OTLP receiver functionality | Stable | -|| OTLP receiver configuration | Stable | -|| OTLP exporter functionality | Stable | -|| OTLP exporter configuration | Stable | -|Metrics | OTLP protocol | Stable | -|| OTLP receiver functionality | Stable | -|| OTLP receiver configuration | Stable | -|| OTLP exporter functionality | Stable | -|| OTLP exporter configuration | Stable | -|Logs | OTLP protocol | Beta | -|| OTLP receiver functionality | Beta | -|| OTLP receiver configuration | Beta | -|| OTLP exporter functionality | Beta | -|| OTLP exporter configuration | Beta | -|Common| Logging exporter | Unstable | -|| Batch processor functionality | Beta | -|| Batch processor configuration | Beta | -|| MemoryLimiter processor functionality | Beta | -|| MemoryLimiter processor configuration | Beta | - -We follow the production maturity level defined [here](https://github.com/open-telemetry/community/blob/47813530864b9fe5a5146f466a58bd2bb94edc72/maturity-matrix.yaml#L31). - -### Compatibility +functionality and configuration. The status for each component is available in the README file for the component. While +we intend to provide high-quality components as part of this repository, we acknowledge that not all of them are ready +for prime time. As such, each component should list its current stability level for each telemetry signal, according to +the following definitions: + +### In development + +Not all pieces of the component are in place yet and it might not be available as part of any distributions yet. Bugs and performance issues should be reported, but it is likely that the component owners might not give them much attention. Your feedback is still desired, especially when it comes to the user-experience (configuration options, component observability, technical implementation details, ...). Configuration options might break often depending on how things evolve. The component should not be used in production. + +### Alpha + +The component is ready to be used for limited non-critical workloads and the authors of this component would welcome your feedback. Bugs and performance problems should be reported, but component owners might not work on them right away. The configuration options might change often without backwards compatibility guarantees. + +### Beta + +Same as Alpha, but the configuration options are deemed stable. While there might be breaking changes between releases, component owners should try to minimize them. A component at this stage is expected to have had exposure to non-critical production workloads already during its **Alpha** phase, making it suitable for broader usage. + +### Stable + +The component is ready for general availability. Bugs and performance problems should be reported and there's an expectation that the component owners will work on them. Breaking changes, including configuration options and the component's output are not expected to happen without prior notice, unless under special circumstances. + +### Deprecated + +The component is planned to be removed in a future version and no further support will be provided. Note that new issues will likely not be worked on. When a component enters "deprecated" mode, it is expected to exist for at least two minor releases. See the component's readme file for more details on when a component will cease to exist. + +## Compatibility When used as a library, the OpenTelemetry Collector attempts to track the currently supported versions of Go, as [defined by the Go team](https://go.dev/doc/devel/release#policy). Removing support for an unsupported Go version is not considered a breaking change. From 1f31c1a88c22f177bea038c2f2db9f3247db062a Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 17 May 2022 12:25:40 -0700 Subject: [PATCH 44/67] [docs] add status information for OTLP exporter (#5374) * [docs] add status information for OTLP exporter Adds the status header for the OTLP exporter. * add stability per signal * Update README.md --- exporter/otlpexporter/README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/exporter/otlpexporter/README.md b/exporter/otlpexporter/README.md index 55293aa3e50..49eb790d188 100644 --- a/exporter/otlpexporter/README.md +++ b/exporter/otlpexporter/README.md @@ -1,14 +1,17 @@ # OTLP gRPC Exporter +| Status | | +| ------------------------ | --------------------- | +| Stability | traces [stable] | +| | metrics [stable] | +| | logs [beta] | +| Supported pipeline types | traces, metrics, logs | +| Distributions | [core], [contrib] | + Exports data via gRPC using [OTLP]( https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md) format. By default, this exporter requires TLS and offers queued retry capabilities. -Supported pipeline types: traces, metrics, logs - -:warning: OTLP logs format is currently marked as "Beta" and may change in -incompatible ways. - ## Getting Started The following settings are required: @@ -50,3 +53,8 @@ Several helper files are leveraged to provide additional capabilities automatica - [gRPC settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configgrpc/README.md) - [TLS and mTLS settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/config/configtls/README.md) - [Queuing, retry and timeout settings](https://github.com/open-telemetry/opentelemetry-collector/blob/main/exporter/exporterhelper/README.md) + +[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib +[core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol +[stable]: https://github.com/open-telemetry/opentelemetry-collector#stable From 8d1150140ef5696fa9b2070927eef3ee0d10af6d Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Tue, 17 May 2022 12:25:56 -0700 Subject: [PATCH 45/67] [docs] add status header for OTLP receiver (#5377) * [docs] add status header for OTLP receiver Fixes #5376 * add stability per signal * Update README.md --- receiver/otlpreceiver/README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/receiver/otlpreceiver/README.md b/receiver/otlpreceiver/README.md index bf112af115f..42e933f394c 100644 --- a/receiver/otlpreceiver/README.md +++ b/receiver/otlpreceiver/README.md @@ -1,14 +1,17 @@ # OTLP Receiver +| Status | | +| ------------------------ | --------------------- | +| Stability | traces [stable] | +| | metrics [stable] | +| | logs [beta] | +| Supported pipeline types | traces, metrics, logs | +| Distributions | [core], [contrib] | + Receives data via gRPC or HTTP using [OTLP]( https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md) format. -Supported pipeline types: traces, metrics, logs - -:warning: OTLP logs format is currently marked as "Beta" and may change in -incompatible ways. - ## Getting Started All that is required to enable the OTLP receiver is to include it in the @@ -74,3 +77,8 @@ receivers: - Example-Header max_age: 7200 ``` + +[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib +[core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol +[stable]: https://github.com/open-telemetry/opentelemetry-collector#stable From 74715399db396f2111bf489560b541bd1ebfa85b Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 17 May 2022 14:22:11 -0700 Subject: [PATCH 46/67] Improve map providers tests, env use constant, file add missing invalid (#5378) Signed-off-by: Bogdan Drutu --- .../envmapprovider/mapprovider_test.go | 22 +++++++++++-------- .../testdata/default-config.yaml | 5 ----- .../testdata/invalid-yaml.yaml | 0 3 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 config/mapprovider/envmapprovider/testdata/default-config.yaml rename config/mapprovider/{envmapprovider => filemapprovider}/testdata/invalid-yaml.yaml (100%) diff --git a/config/mapprovider/envmapprovider/mapprovider_test.go b/config/mapprovider/envmapprovider/mapprovider_test.go index 1c04c18e504..90dded2c245 100644 --- a/config/mapprovider/envmapprovider/mapprovider_test.go +++ b/config/mapprovider/envmapprovider/mapprovider_test.go @@ -16,8 +16,6 @@ package envmapprovider import ( "context" - "os" - "path/filepath" "testing" "github.com/stretchr/testify/assert" @@ -28,6 +26,16 @@ import ( const envSchemePrefix = schemeName + ":" +const validYAML = ` +processors: + batch: +exporters: + otlp: + endpoint: "localhost:4317" +` + +const invalidYAML = "invalid" + func TestEmptyName(t *testing.T) { env := New() _, err := env.Retrieve(context.Background(), "", nil) @@ -43,21 +51,17 @@ func TestUnsupportedScheme(t *testing.T) { } func TestInvalidYAML(t *testing.T) { - bytes, err := os.ReadFile(filepath.Join("testdata", "invalid-yaml.yaml")) - require.NoError(t, err) const envName = "invalid-yaml" - t.Setenv(envName, string(bytes)) + t.Setenv(envName, invalidYAML) env := New() - _, err = env.Retrieve(context.Background(), envSchemePrefix+envName, nil) + _, err := env.Retrieve(context.Background(), envSchemePrefix+envName, nil) assert.Error(t, err) assert.NoError(t, env.Shutdown(context.Background())) } func TestEnv(t *testing.T) { - bytes, err := os.ReadFile(filepath.Join("testdata", "default-config.yaml")) - require.NoError(t, err) const envName = "default-config" - t.Setenv(envName, string(bytes)) + t.Setenv(envName, validYAML) env := New() ret, err := env.Retrieve(context.Background(), envSchemePrefix+envName, nil) diff --git a/config/mapprovider/envmapprovider/testdata/default-config.yaml b/config/mapprovider/envmapprovider/testdata/default-config.yaml deleted file mode 100644 index ee4ead5c11c..00000000000 --- a/config/mapprovider/envmapprovider/testdata/default-config.yaml +++ /dev/null @@ -1,5 +0,0 @@ -processors: - batch: -exporters: - otlp: - endpoint: "localhost:4317" diff --git a/config/mapprovider/envmapprovider/testdata/invalid-yaml.yaml b/config/mapprovider/filemapprovider/testdata/invalid-yaml.yaml similarity index 100% rename from config/mapprovider/envmapprovider/testdata/invalid-yaml.yaml rename to config/mapprovider/filemapprovider/testdata/invalid-yaml.yaml From ed281738695883289f4a212cb9f708cf9fe34cc2 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 17 May 2022 17:17:59 -0700 Subject: [PATCH 47/67] Remove test only code that marshalls json using jsonpb (#5384) Signed-off-by: Bogdan Drutu --- pdata/ptrace/json.go | 27 ++------------------------- pdata/ptrace/json_test.go | 21 ++------------------- 2 files changed, 4 insertions(+), 44 deletions(-) diff --git a/pdata/ptrace/json.go b/pdata/ptrace/json.go index 2ad28adf209..bddee762cf3 100644 --- a/pdata/ptrace/json.go +++ b/pdata/ptrace/json.go @@ -25,7 +25,6 @@ import ( "go.opentelemetry.io/collector/pdata/internal" otlpcommon "go.opentelemetry.io/collector/pdata/internal/data/protogen/common/v1" otlptrace "go.opentelemetry.io/collector/pdata/internal/data/protogen/trace/v1" - "go.opentelemetry.io/collector/pdata/internal/otlp" ) // NewJSONMarshaler returns a model.Marshaler. Marshals to OTLP json bytes. @@ -48,18 +47,14 @@ func (e *jsonMarshaler) MarshalTraces(td Traces) ([]byte, error) { return buf.Bytes(), err } -// NewJSONUnmarshaler returns a model.Unmarshaler. Unmarshals from OTLP json bytes. +// NewJSONUnmarshaler returns a model.Unmarshaler. Unmarshalls from OTLP json bytes. func NewJSONUnmarshaler() Unmarshaler { - return newJSONUnmarshaler() + return &jsonUnmarshaler{} } type jsonUnmarshaler struct { } -func newJSONUnmarshaler() *jsonUnmarshaler { - return &jsonUnmarshaler{} -} - func (d *jsonUnmarshaler) UnmarshalTraces(buf []byte) (Traces, error) { iter := jsoniter.ConfigFastest.BorrowIterator(buf) defer jsoniter.ConfigFastest.ReturnIterator(iter) @@ -407,21 +402,3 @@ func readStatusCode(iter *jsoniter.Iterator) otlptrace.Status_StatusCode { v := any.ToString() return otlptrace.Status_StatusCode(otlptrace.Status_StatusCode_value[v]) } - -// jsonpbUnmarshaler use standard `jsonpb.Unmarshaler` for benchmark and unit test. -type jsonpbUnmarshaler struct { - delegate jsonpb.Unmarshaler -} - -func newJSONPBUnmarshaler() *jsonpbUnmarshaler { - return &jsonpbUnmarshaler{delegate: jsonpb.Unmarshaler{}} -} - -func (d *jsonpbUnmarshaler) UnmarshalTraces(buf []byte) (Traces, error) { - td := otlptrace.TracesData{} - if err := d.delegate.Unmarshal(bytes.NewReader(buf), &td); err != nil { - return Traces{}, err - } - otlp.InstrumentationLibrarySpansToScope(td.ResourceSpans) - return internal.TracesFromProto(td), nil -} diff --git a/pdata/ptrace/json_test.go b/pdata/ptrace/json_test.go index bfa2651bee3..e8c3fc08f34 100644 --- a/pdata/ptrace/json_test.go +++ b/pdata/ptrace/json_test.go @@ -136,36 +136,19 @@ func TestJSONFull(t *testing.T) { jsonBuf, err := encoder.MarshalTraces(tracesOTLPFull) assert.NoError(t, err) - decoder := newJSONUnmarshaler() + decoder := NewJSONUnmarshaler() got, err := decoder.UnmarshalTraces(jsonBuf) assert.NoError(t, err) assert.EqualValues(t, tracesOTLPFull, got) } -func BenchmarkJSONPBUnmarshal(b *testing.B) { - b.ReportAllocs() - - encoder := NewJSONMarshaler() - jsonBuf, err := encoder.MarshalTraces(tracesOTLPFull) - assert.NoError(b, err) - decoder := newJSONPBUnmarshaler() - - b.ResetTimer() - b.RunParallel(func(pb *testing.PB) { - for pb.Next() { - _, err := decoder.UnmarshalTraces(jsonBuf) - assert.NoError(b, err) - } - }) -} - func BenchmarkJSONUnmarshal(b *testing.B) { b.ReportAllocs() encoder := NewJSONMarshaler() jsonBuf, err := encoder.MarshalTraces(tracesOTLPFull) assert.NoError(b, err) - decoder := newJSONUnmarshaler() + decoder := NewJSONUnmarshaler() b.ResetTimer() b.RunParallel(func(pb *testing.PB) { From e6b5cd54d1fccb1d30aebfd76dd0714c7ed99842 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 17 May 2022 17:18:08 -0700 Subject: [PATCH 48/67] Deprecate componenterror package, move to component (#5383) Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 1 + component/component.go | 11 +++++++++++ component/componenterror/errors.go | 12 +++++------- component/componenttest/shutdown_verifier.go | 3 +-- component/exporter.go | 7 +++---- component/processor.go | 7 +++---- component/receiver.go | 7 +++---- processor/processorhelper/logs.go | 3 +-- processor/processorhelper/logs_test.go | 3 +-- processor/processorhelper/metrics.go | 3 +-- processor/processorhelper/metrics_test.go | 3 +-- processor/processorhelper/traces.go | 3 +-- processor/processorhelper/traces_test.go | 3 +-- receiver/otlpreceiver/otlp.go | 7 +++---- receiver/scraperhelper/scrapercontroller.go | 3 +-- receiver/scraperhelper/scrapercontroller_test.go | 2 +- service/internal/builder/exporters_builder.go | 3 +-- service/internal/builder/receivers_builder.go | 5 ++--- 18 files changed, 41 insertions(+), 45 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 352ca2dd4d2..01a03282006 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### 🚩 Deprecations 🚩 - Deprecate `config.Config` and `config.Service`, use `service.Config*` (#4608) +- Deprecate `componenterror` package, move everything to `component` (#5383) ### 💡 Enhancements 💡 diff --git a/component/component.go b/component/component.go index 210becf4b74..b8b206089eb 100644 --- a/component/component.go +++ b/component/component.go @@ -16,10 +16,21 @@ package component // import "go.opentelemetry.io/collector/component" import ( "context" + "errors" "go.opentelemetry.io/collector/config" ) +var ( + // ErrNilNextConsumer can be returned by receiver, or processor Start factory funcs that create the Component if the + // expected next Consumer is nil. + ErrNilNextConsumer = errors.New("nil next Consumer") + + // ErrDataTypeIsNotSupported can be returned by receiver, exporter or processor factory funcs that create the + // Component if the particular telemetry data type is not supported by the receiver, exporter or processor. + ErrDataTypeIsNotSupported = errors.New("telemetry type is not supported") +) + // Component is either a receiver, exporter, processor, or an extension. // // A component's lifecycle has the following phases: diff --git a/component/componenterror/errors.go b/component/componenterror/errors.go index 07d0c3bc398..a017ba8b0d7 100644 --- a/component/componenterror/errors.go +++ b/component/componenterror/errors.go @@ -15,15 +15,13 @@ package componenterror // import "go.opentelemetry.io/collector/component/componenterror" import ( - "errors" + "go.opentelemetry.io/collector/component" ) var ( - // ErrNilNextConsumer indicates an error on nil next consumer. - ErrNilNextConsumer = errors.New("nil nextConsumer") + // Deprecated: use component.ErrNilNextConsumer + ErrNilNextConsumer = component.ErrNilNextConsumer - // ErrDataTypeIsNotSupported can be returned by receiver, exporter or processor - // factory methods that create the entity if the particular telemetry - // data type is not supported by the receiver, exporter or processor. - ErrDataTypeIsNotSupported = errors.New("telemetry type is not supported") + // Deprecated: use component.ErrDataTypeIsNotSupported + ErrDataTypeIsNotSupported = component.ErrDataTypeIsNotSupported ) diff --git a/component/componenttest/shutdown_verifier.go b/component/componenttest/shutdown_verifier.go index fd55a51ee5b..51eaa63d706 100644 --- a/component/componenttest/shutdown_verifier.go +++ b/component/componenttest/shutdown_verifier.go @@ -23,7 +23,6 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer/consumertest" "go.opentelemetry.io/collector/internal/testdata" @@ -39,7 +38,7 @@ func verifyTracesProcessorDoesntProduceAfterShutdown(t *testing.T, factory compo nextSink, ) if err != nil { - if errors.Is(err, componenterror.ErrDataTypeIsNotSupported) { + if errors.Is(err, component.ErrDataTypeIsNotSupported) { return } require.NoError(t, err) diff --git a/component/exporter.go b/component/exporter.go index 61c118bc9bb..86836804080 100644 --- a/component/exporter.go +++ b/component/exporter.go @@ -17,7 +17,6 @@ package component // import "go.opentelemetry.io/collector/component" import ( "context" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" ) @@ -102,7 +101,7 @@ type CreateTracesExporterFunc func(context.Context, ExporterCreateSettings, conf // CreateTracesExporter implements ExporterFactory.CreateTracesExporter(). func (f CreateTracesExporterFunc) CreateTracesExporter(ctx context.Context, set ExporterCreateSettings, cfg config.Exporter) (TracesExporter, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg) } @@ -113,7 +112,7 @@ type CreateMetricsExporterFunc func(context.Context, ExporterCreateSettings, con // CreateMetricsExporter implements ExporterFactory.CreateMetricsExporter(). func (f CreateMetricsExporterFunc) CreateMetricsExporter(ctx context.Context, set ExporterCreateSettings, cfg config.Exporter) (MetricsExporter, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg) } @@ -124,7 +123,7 @@ type CreateLogsExporterFunc func(context.Context, ExporterCreateSettings, config // CreateLogsExporter implements ExporterFactory.CreateLogsExporter(). func (f CreateLogsExporterFunc) CreateLogsExporter(ctx context.Context, set ExporterCreateSettings, cfg config.Exporter) (LogsExporter, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg) } diff --git a/component/processor.go b/component/processor.go index f31d1b2ebcf..d3f9cd1a365 100644 --- a/component/processor.go +++ b/component/processor.go @@ -17,7 +17,6 @@ package component // import "go.opentelemetry.io/collector/component" import ( "context" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" ) @@ -122,7 +121,7 @@ func (f CreateTracesProcessorFunc) CreateTracesProcessor( cfg config.Processor, nextConsumer consumer.Traces) (TracesProcessor, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg, nextConsumer) } @@ -138,7 +137,7 @@ func (f CreateMetricsProcessorFunc) CreateMetricsProcessor( nextConsumer consumer.Metrics, ) (MetricsProcessor, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg, nextConsumer) } @@ -154,7 +153,7 @@ func (f CreateLogsProcessorFunc) CreateLogsProcessor( nextConsumer consumer.Logs, ) (LogsProcessor, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg, nextConsumer) } diff --git a/component/receiver.go b/component/receiver.go index 58f47ce4a08..825c7b2a6eb 100644 --- a/component/receiver.go +++ b/component/receiver.go @@ -17,7 +17,6 @@ package component // import "go.opentelemetry.io/collector/component" import ( "context" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" ) @@ -154,7 +153,7 @@ func (f CreateTracesReceiverFunc) CreateTracesReceiver( cfg config.Receiver, nextConsumer consumer.Traces) (TracesReceiver, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg, nextConsumer) } @@ -170,7 +169,7 @@ func (f CreateMetricsReceiverFunc) CreateMetricsReceiver( nextConsumer consumer.Metrics, ) (MetricsReceiver, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg, nextConsumer) } @@ -186,7 +185,7 @@ func (f CreateLogsReceiverFunc) CreateLogsReceiver( nextConsumer consumer.Logs, ) (LogsReceiver, error) { if f == nil { - return nil, componenterror.ErrDataTypeIsNotSupported + return nil, ErrDataTypeIsNotSupported } return f(ctx, set, cfg, nextConsumer) } diff --git a/processor/processorhelper/logs.go b/processor/processorhelper/logs.go index 8520df99820..fd1c8d82229 100644 --- a/processor/processorhelper/logs.go +++ b/processor/processorhelper/logs.go @@ -21,7 +21,6 @@ import ( "go.opentelemetry.io/otel/trace" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/pdata/plog" @@ -50,7 +49,7 @@ func NewLogsProcessor( } if nextConsumer == nil { - return nil, componenterror.ErrNilNextConsumer + return nil, component.ErrNilNextConsumer } eventOptions := spanAttributes(cfg.ID()) diff --git a/processor/processorhelper/logs_test.go b/processor/processorhelper/logs_test.go index 7a8d56786ca..2214c1c115e 100644 --- a/processor/processorhelper/logs_test.go +++ b/processor/processorhelper/logs_test.go @@ -23,7 +23,6 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" @@ -61,7 +60,7 @@ func TestNewLogsProcessor_NilRequiredFields(t *testing.T) { assert.Error(t, err) _, err = NewLogsProcessor(&testLogsCfg, nil, newTestLProcessor(nil)) - assert.Equal(t, componenterror.ErrNilNextConsumer, err) + assert.Equal(t, component.ErrNilNextConsumer, err) } func TestNewLogsProcessor_ProcessLogError(t *testing.T) { diff --git a/processor/processorhelper/metrics.go b/processor/processorhelper/metrics.go index 30316debbe2..56e85a8188f 100644 --- a/processor/processorhelper/metrics.go +++ b/processor/processorhelper/metrics.go @@ -21,7 +21,6 @@ import ( "go.opentelemetry.io/otel/trace" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/pdata/pmetric" @@ -50,7 +49,7 @@ func NewMetricsProcessor( } if nextConsumer == nil { - return nil, componenterror.ErrNilNextConsumer + return nil, component.ErrNilNextConsumer } eventOptions := spanAttributes(cfg.ID()) diff --git a/processor/processorhelper/metrics_test.go b/processor/processorhelper/metrics_test.go index a95c8015832..e86beb5d3e4 100644 --- a/processor/processorhelper/metrics_test.go +++ b/processor/processorhelper/metrics_test.go @@ -23,7 +23,6 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" @@ -61,7 +60,7 @@ func TestNewMetricsProcessor_NilRequiredFields(t *testing.T) { assert.Error(t, err) _, err = NewMetricsProcessor(&testMetricsCfg, nil, newTestMProcessor(nil)) - assert.Equal(t, componenterror.ErrNilNextConsumer, err) + assert.Equal(t, component.ErrNilNextConsumer, err) } func TestNewMetricsProcessor_ProcessMetricsError(t *testing.T) { diff --git a/processor/processorhelper/traces.go b/processor/processorhelper/traces.go index 2d7c2e953aa..43e0d4faaa0 100644 --- a/processor/processorhelper/traces.go +++ b/processor/processorhelper/traces.go @@ -21,7 +21,6 @@ import ( "go.opentelemetry.io/otel/trace" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/pdata/ptrace" @@ -50,7 +49,7 @@ func NewTracesProcessor( } if nextConsumer == nil { - return nil, componenterror.ErrNilNextConsumer + return nil, component.ErrNilNextConsumer } eventOptions := spanAttributes(cfg.ID()) diff --git a/processor/processorhelper/traces_test.go b/processor/processorhelper/traces_test.go index 3ece81ffe91..ff5e3bd8d1c 100644 --- a/processor/processorhelper/traces_test.go +++ b/processor/processorhelper/traces_test.go @@ -23,7 +23,6 @@ import ( "github.com/stretchr/testify/require" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/component/componenttest" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" @@ -61,7 +60,7 @@ func TestNewTracesProcessor_NilRequiredFields(t *testing.T) { assert.Error(t, err) _, err = NewTracesProcessor(&testTracesCfg, nil, newTestTProcessor(nil)) - assert.Equal(t, componenterror.ErrNilNextConsumer, err) + assert.Equal(t, component.ErrNilNextConsumer, err) } func TestNewTracesProcessor_ProcessTraceError(t *testing.T) { diff --git a/receiver/otlpreceiver/otlp.go b/receiver/otlpreceiver/otlp.go index 905d1ab1d6b..0156cb2e106 100644 --- a/receiver/otlpreceiver/otlp.go +++ b/receiver/otlpreceiver/otlp.go @@ -25,7 +25,6 @@ import ( "google.golang.org/grpc" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config/configgrpc" "go.opentelemetry.io/collector/config/confighttp" "go.opentelemetry.io/collector/consumer" @@ -174,7 +173,7 @@ func (r *otlpReceiver) Shutdown(ctx context.Context) error { func (r *otlpReceiver) registerTraceConsumer(tc consumer.Traces) error { if tc == nil { - return componenterror.ErrNilNextConsumer + return component.ErrNilNextConsumer } r.traceReceiver = trace.New(r.cfg.ID(), tc, r.settings) if r.httpMux != nil { @@ -198,7 +197,7 @@ func (r *otlpReceiver) registerTraceConsumer(tc consumer.Traces) error { func (r *otlpReceiver) registerMetricsConsumer(mc consumer.Metrics) error { if mc == nil { - return componenterror.ErrNilNextConsumer + return component.ErrNilNextConsumer } r.metricsReceiver = metrics.New(r.cfg.ID(), mc, r.settings) if r.httpMux != nil { @@ -222,7 +221,7 @@ func (r *otlpReceiver) registerMetricsConsumer(mc consumer.Metrics) error { func (r *otlpReceiver) registerLogsConsumer(lc consumer.Logs) error { if lc == nil { - return componenterror.ErrNilNextConsumer + return component.ErrNilNextConsumer } r.logReceiver = logs.New(r.cfg.ID(), lc, r.settings) if r.httpMux != nil { diff --git a/receiver/scraperhelper/scrapercontroller.go b/receiver/scraperhelper/scrapercontroller.go index 5a5596f4605..c2c63a329df 100644 --- a/receiver/scraperhelper/scrapercontroller.go +++ b/receiver/scraperhelper/scrapercontroller.go @@ -23,7 +23,6 @@ import ( "go.uber.org/zap" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/obsreport" @@ -97,7 +96,7 @@ func NewScraperControllerReceiver( options ...ScraperControllerOption, ) (component.Receiver, error) { if nextConsumer == nil { - return nil, componenterror.ErrNilNextConsumer + return nil, component.ErrNilNextConsumer } if cfg.CollectionInterval <= 0 { diff --git a/receiver/scraperhelper/scrapercontroller_test.go b/receiver/scraperhelper/scrapercontroller_test.go index fc5ee174e60..ef88029ca0c 100644 --- a/receiver/scraperhelper/scrapercontroller_test.go +++ b/receiver/scraperhelper/scrapercontroller_test.go @@ -107,7 +107,7 @@ func TestScrapeController(t *testing.T) { name: "AddMetricsScrapers_NilNextConsumerError", scrapers: 2, nilNextConsumer: true, - expectedNewErr: "nil nextConsumer", + expectedNewErr: "nil next Consumer", }, { name: "AddMetricsScrapersWithCollectionInterval_InvalidCollectionIntervalError", diff --git a/service/internal/builder/exporters_builder.go b/service/internal/builder/exporters_builder.go index cbfcd1663f6..9de7b4437a9 100644 --- a/service/internal/builder/exporters_builder.go +++ b/service/internal/builder/exporters_builder.go @@ -23,7 +23,6 @@ import ( "go.uber.org/zap" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/service/internal/components" ) @@ -238,7 +237,7 @@ func buildExporter( } if err != nil { - if errors.Is(err, componenterror.ErrDataTypeIsNotSupported) { + if errors.Is(err, component.ErrDataTypeIsNotSupported) { // Could not create because this exporter does not support this data type. return nil, exporterTypeMismatchErr(cfg, pipelineID, dataType) } diff --git a/service/internal/builder/receivers_builder.go b/service/internal/builder/receivers_builder.go index f987a11e738..f73d2be3e48 100644 --- a/service/internal/builder/receivers_builder.go +++ b/service/internal/builder/receivers_builder.go @@ -23,7 +23,6 @@ import ( "go.uber.org/zap" "go.opentelemetry.io/collector/component" - "go.opentelemetry.io/collector/component/componenterror" "go.opentelemetry.io/collector/config" "go.opentelemetry.io/collector/consumer" "go.opentelemetry.io/collector/service/internal/components" @@ -191,11 +190,11 @@ func attachReceiverToPipelines( createdReceiver, err = factory.CreateLogsReceiver(ctx, set, cfg, junction) default: - err = componenterror.ErrDataTypeIsNotSupported + err = component.ErrDataTypeIsNotSupported } if err != nil { - if errors.Is(err, componenterror.ErrDataTypeIsNotSupported) { + if errors.Is(err, component.ErrDataTypeIsNotSupported) { return fmt.Errorf( "receiver %v does not support %s but it was used in a %s pipeline", id, dataType, dataType) From 32a55922dcb38b34ea81c5691d4d553a6eddba6a Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Wed, 18 May 2022 08:37:10 -0700 Subject: [PATCH 49/67] [docs] add status for otlphttp exporter (#5387) Fixes #5386 --- exporter/otlphttpexporter/README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/exporter/otlphttpexporter/README.md b/exporter/otlphttpexporter/README.md index f7a0e9f02d2..a2430c19734 100644 --- a/exporter/otlphttpexporter/README.md +++ b/exporter/otlphttpexporter/README.md @@ -1,14 +1,17 @@ # OTLP/HTTP Exporter +| Status | | +| ------------------------ | --------------------- | +| Stability | traces [stable] | +| | metrics [stable] | +| | logs [beta] | +| Supported pipeline types | traces, metrics, logs | +| Distributions | [core], [contrib] | + Exports traces and/or metrics via HTTP using [OTLP]( https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/otlp.md) format. -Supported pipeline types: traces, metrics, logs - -:warning: OTLP logs format is currently marked as "Beta" and may change in -incompatible ways. - The following settings are required: - `endpoint` (no default): The target base URL to send data to (e.g.: https://example.com:4318). @@ -48,3 +51,8 @@ exporters: The full list of settings exposed for this exporter are documented [here](./config.go) with detailed sample configurations [here](./testdata/config.yaml). + +[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib +[core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol +[stable]: https://github.com/open-telemetry/opentelemetry-collector#stable From 4b2a304adbd8a2c84ddd9a6b263656cf73b9ffe0 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Wed, 18 May 2022 08:37:34 -0700 Subject: [PATCH 50/67] [docs] add status for batch processor (#5392) Fixes #5391 --- processor/batchprocessor/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/processor/batchprocessor/README.md b/processor/batchprocessor/README.md index 5b69aa0166f..b0640e3c8e1 100644 --- a/processor/batchprocessor/README.md +++ b/processor/batchprocessor/README.md @@ -1,6 +1,12 @@ # Batch Processor -Supported pipeline types: metric, traces, logs +| Status | | +| ------------------------ | --------------------- | +| Stability | traces [beta] | +| | metrics [beta] | +| | logs [beta] | +| Supported pipeline types | traces, metrics, logs | +| Distributions | [core], [contrib] | The batch processor accepts spans, metrics, or logs and places them into batches. Batching helps better compress the data and reduce the number of @@ -36,3 +42,7 @@ processors: Refer to [config.yaml](./testdata/config.yaml) for detailed examples on using the processor. + +[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib +[core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol From a9c09c12a82d7ae8a4de7094a63e977b25d63388 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Wed, 18 May 2022 08:39:41 -0700 Subject: [PATCH 51/67] [docs] add status for logging exporter (#5389) * [docs] add status for logging exporter Fixes #5388 * update doc --- exporter/loggingexporter/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/exporter/loggingexporter/README.md b/exporter/loggingexporter/README.md index 1ad42f63daa..78db2198072 100644 --- a/exporter/loggingexporter/README.md +++ b/exporter/loggingexporter/README.md @@ -1,5 +1,11 @@ # Logging Exporter +| Status | | +| ------------------------ | ----------------------- | +| Stability | [In development] | +| Supported pipeline types | traces, metrics, logs | +| Distributions | [core], [contrib] | + Exports data to the console via zap.Logger. Supported pipeline types: traces, metrics, logs @@ -27,3 +33,7 @@ exporters: sampling_initial: 5 sampling_thereafter: 200 ``` + +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib +[core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol +[In development]: https://github.com/open-telemetry/opentelemetry-collector#in-development From b180bd215caca0a9975d61d6eb173ced3fbda6b6 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Wed, 18 May 2022 08:41:42 -0700 Subject: [PATCH 52/67] [docs] add status for memorylimiter (#5393) Fixes #5390 --- processor/memorylimiterprocessor/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/processor/memorylimiterprocessor/README.md b/processor/memorylimiterprocessor/README.md index 406d2f3d87c..0e896d0e271 100644 --- a/processor/memorylimiterprocessor/README.md +++ b/processor/memorylimiterprocessor/README.md @@ -1,6 +1,10 @@ # Memory Limiter Processor -Supported pipeline types: metrics, traces, logs +| Status | | +| ------------------------ | --------------------- | +| Stability | [beta] | +| Supported pipeline types | traces, metrics, logs | +| Distributions | [core], [contrib] | The memory limiter processor is used to prevent out of memory situations on the collector. Given that the amount and type of data the collector processes is @@ -93,3 +97,7 @@ processors: Refer to [config.yaml](./testdata/config.yaml) for detailed examples on using the processor. + +[beta]: https://github.com/open-telemetry/opentelemetry-collector#beta +[contrib]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol-contrib +[core]: https://github.com/open-telemetry/opentelemetry-collector-releases/tree/main/distributions/otelcol From ab796818282d61ba0bec0e372adb126f73c169a2 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Wed, 18 May 2022 08:50:39 -0700 Subject: [PATCH 53/67] Update config/README.md with more details about configURI (#5381) Signed-off-by: Bogdan Drutu --- config/README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/config/README.md b/config/README.md index f8286cb1f79..b857765c173 100644 --- a/config/README.md +++ b/config/README.md @@ -9,7 +9,12 @@ The [Map](configmap.go) represents the raw configuration for a service (e.g. Ope ## MapProvider -The [MapProvider](mapprovider.go) provides configuration, and allows to watch/monitor for changes. +The [MapProvider](mapprovider.go) provides configuration, and allows to watch/monitor for changes. Any `MapProvider` +has a `` associated with it, and will provide configs for `configURI` that follow the ":" format. +This format is compatible with the URI definition (see [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986)). +The `` MUST be always included in the `configURI`. The scheme for any `MapProvider` MUST be at least 2 +characters long to avoid conflicting with a driver-letter identifier as specified in +[file URI syntax](https://tools.ietf.org/id/draft-kerwin-file-scheme-07.html#syntax). ## MapConverter @@ -18,7 +23,7 @@ common use-case is to migrate/transform the configuration after a backwards inco ## MapResolver -The `MapResolver` handles the use of multiple [MapProviders](./mapprovider.go) and [Converters](./configmap.go) +The `MapResolver` handles the use of multiple [MapProviders](./mapprovider.go) and [MapConverters](./configmap.go) simplifying configuration parsing, monitoring for updates, and the overall life-cycle of the used config providers. The `MapResolver` provides two main functionalities: [Configuration Resolving](#configuration-resolving) and [Watching for Updates](#watching-for-updates). @@ -26,7 +31,7 @@ The `MapResolver` provides two main functionalities: [Configuration Resolving](# ### Configuration Resolving The `MapResolver` receives as input a set of `MapProviders`, a list of `MapConverters`, and a list of configuration identifier -`configUri` that will be used to generate the resulting, or effective, configuration in the form of a `config.Map`, +`configURI` that will be used to generate the resulting, or effective, configuration in the form of a `config.Map`, that can be used by code that is oblivious to the usage of `MapProviders` and `MapConverters`. ```terminal From b46b7d9d94ba34a8fd4d0f18aa37b38eb4426636 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Wed, 18 May 2022 14:20:35 -0700 Subject: [PATCH 54/67] [pdata] Remove deprecated primitive slice getters/setters (#5347) This is the second step in a sequence of backward changes to replace primitive slices with immutable structs --- CHANGELOG.md | 4 +++ pdata/internal/common.go | 61 ++--------------------------------- pdata/internal/common_test.go | 20 ++++++------ pdata/internal/metrics.go | 36 --------------------- 4 files changed, 17 insertions(+), 104 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01a03282006..3e296ab9370 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Remove `configunmarshaler.Unmarshaler` interface, per deprecation comment (#5348) - Remove deprecated pdata funcs/structs from v0.50.0 (#5345) +- Remove deprecated pdata getters and setters of primitive slice values: `Value.BytesVal`, `Value.SetBytesVal`, + `Value.UpdateBytes`, `Value.InsertBytes`, `Value.UpsertBytes`, `.BucketCounts`, + `.SetBucketCounts`, `HistogramDataPoint.ExplicitBounds`, + `HistogramDataPoint.SetExplicitBounds` (#5347) - Remove derecated featuregate funcs/structs from v0.50.0 (#5346) - Remove access to deprecated members of the config.Retrieved struct (#5363) diff --git a/pdata/internal/common.go b/pdata/internal/common.go index bc231c02e00..d4800bd1439 100644 --- a/pdata/internal/common.go +++ b/pdata/internal/common.go @@ -258,15 +258,6 @@ func (v Value) SliceVal() Slice { return newSlice(&arr.Values) } -// BytesVal returns the []byte value associated with this Value. -// If the Type() is not ValueTypeBytes then returns false. -// Calling this function on zero-initialized Value will cause a panic. -// Modifying the returned []byte in-place is forbidden. -// Deprecated: [0.51.0] Use MBytesVal instead. -func (v Value) BytesVal() []byte { - return v.orig.GetBytesValue() -} - // MBytesVal returns the []byte value associated with this Value. // If the Type() is not ValueTypeBytes then returns false. // Calling this function on zero-initialized Value will cause a panic. @@ -303,16 +294,6 @@ func (v Value) SetBoolVal(bv bool) { v.orig.Value = &otlpcommon.AnyValue_BoolValue{BoolValue: bv} } -// SetBytesVal replaces the []byte value associated with this Value, -// it also changes the type to be ValueTypeBytes. -// Calling this function on zero-initialized Value will cause a panic. -// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data -// across multiple attributes is forbidden. -// Deprecated: [0.51.0] Use SetMBytesVal instead. -func (v Value) SetBytesVal(bv []byte) { - v.orig.Value = &otlpcommon.AnyValue_BytesValue{BytesValue: bv} -} - // SetMBytesVal replaces the []byte value associated with this Value, // it also changes the type to be ValueTypeBytes. // Calling this function on zero-initialized Value will cause a panic. @@ -464,7 +445,7 @@ func (v Value) AsString() string { return string(jsonStr) case ValueTypeBytes: - return base64.StdEncoding.EncodeToString(v.BytesVal()) + return base64.StdEncoding.EncodeToString(v.MBytesVal()) case ValueTypeSlice: jsonStr, _ := json.Marshal(v.SliceVal().AsRaw()) @@ -519,7 +500,7 @@ func (v Value) asRaw() interface{} { case ValueTypeInt: return v.IntVal() case ValueTypeBytes: - return v.BytesVal() + return v.MBytesVal() case ValueTypeMap: return v.MapVal().AsRaw() case ValueTypeSlice: @@ -570,7 +551,7 @@ func newAttributeKeyValue(k string, av Value) otlpcommon.KeyValue { func newAttributeKeyValueBytes(k string, v []byte) otlpcommon.KeyValue { orig := otlpcommon.KeyValue{Key: k} akv := Value{&orig.Value} - akv.SetBytesVal(v) + akv.SetMBytesVal(v) return orig } @@ -724,17 +705,6 @@ func (m Map) InsertBool(k string, v bool) { } } -// InsertBytes adds the []byte Value to the map when the key does not exist. -// No action is applied to the map where the key already exists. -// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data -// across multiple attributes is forbidden. -// Deprecated: [0.51.0] Use InsertMBytes instead. -func (m Map) InsertBytes(k string, v []byte) { - if _, existing := m.Get(k); !existing { - *m.orig = append(*m.orig, newAttributeKeyValueBytes(k, v)) - } -} - // InsertMBytes adds the []byte Value to the map when the key does not exist. // No action is applied to the map where the key already exists. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data @@ -790,17 +760,6 @@ func (m Map) UpdateBool(k string, v bool) { } } -// UpdateBytes updates an existing []byte Value with a value. -// No action is applied to the map where the key does not exist. -// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data -// across multiple attributes is forbidden. -// Deprecated: [0.51.0] Use UpdateMBytes instead. -func (m Map) UpdateBytes(k string, v []byte) { - if av, existing := m.Get(k); existing { - av.SetMBytesVal(v) - } -} - // UpdateMBytes updates an existing []byte Value with a value. // No action is applied to the map where the key does not exist. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data @@ -871,20 +830,6 @@ func (m Map) UpsertBool(k string, v bool) { } } -// UpsertBytes performs the Insert or Update action. The []byte Value is -// inserted to the map that did not originally have the key. The key/value is -// updated to the map where the key already existed. -// The caller must ensure the []byte passed in is not modified after the call is made, sharing the data -// across multiple attributes is forbidden. -// Deprecated: [0.51.0] Use UpsertMBytes instead. -func (m Map) UpsertBytes(k string, v []byte) { - if av, existing := m.Get(k); existing { - av.SetMBytesVal(v) - } else { - *m.orig = append(*m.orig, newAttributeKeyValueBytes(k, v)) - } -} - // UpsertMBytes performs the Insert or Update action. The []byte Value is // inserted to the map that did not originally have the key. The key/value is // updated to the map where the key already existed. diff --git a/pdata/internal/common_test.go b/pdata/internal/common_test.go index 290bff5cbe2..10680b7db6e 100644 --- a/pdata/internal/common_test.go +++ b/pdata/internal/common_test.go @@ -66,7 +66,7 @@ func TestAttributeValue(t *testing.T) { bytesValue := []byte{1, 2, 3, 4} v = NewValueBytes(bytesValue) assert.EqualValues(t, ValueTypeBytes, v.Type()) - assert.EqualValues(t, bytesValue, v.BytesVal()) + assert.EqualValues(t, bytesValue, v.MBytesVal()) } func TestAttributeValueType(t *testing.T) { @@ -175,8 +175,8 @@ func TestNilOrigSetAttributeValue(t *testing.T) { assert.EqualValues(t, 1.23, av.DoubleVal()) av = NewValueEmpty() - av.SetBytesVal([]byte{1, 2, 3}) - assert.Equal(t, []byte{1, 2, 3}, av.BytesVal()) + av.SetMBytesVal([]byte{1, 2, 3}) + assert.Equal(t, []byte{1, 2, 3}, av.MBytesVal()) } func TestAttributeValueEqual(t *testing.T) { @@ -416,7 +416,7 @@ func TestMapWithEmpty(t *testing.T) { val, exist = sm.Get("other_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) - assert.EqualValues(t, []byte{1, 2, 3}, val.BytesVal()) + assert.EqualValues(t, []byte{1, 2, 3}, val.MBytesVal()) sm.Update("other_key", NewValueString("yet_another_value")) val, exist = sm.Get("other_key") @@ -452,7 +452,7 @@ func TestMapWithEmpty(t *testing.T) { val, exist = sm.Get("other_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) - assert.EqualValues(t, []byte{4, 5, 6}, val.BytesVal()) + assert.EqualValues(t, []byte{4, 5, 6}, val.MBytesVal()) sm.Upsert("other_key", NewValueString("other_value")) val, exist = sm.Get("other_key") @@ -488,7 +488,7 @@ func TestMapWithEmpty(t *testing.T) { val, exist = sm.Get("other_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) - assert.EqualValues(t, []byte{7, 8, 9}, val.BytesVal()) + assert.EqualValues(t, []byte{7, 8, 9}, val.MBytesVal()) sm.Upsert("yet_another_key", NewValueString("yet_another_value")) val, exist = sm.Get("yet_another_key") @@ -524,7 +524,7 @@ func TestMapWithEmpty(t *testing.T) { val, exist = sm.Get("yet_another_key_bytes") assert.True(t, exist) assert.EqualValues(t, ValueTypeBytes, val.Type()) - assert.EqualValues(t, []byte{1}, val.BytesVal()) + assert.EqualValues(t, []byte{1}, val.MBytesVal()) assert.True(t, sm.Remove("other_key")) assert.True(t, sm.Remove("other_key_string")) @@ -669,10 +669,10 @@ func TestValueBytes_CopyTo(t *testing.T) { orig.CopyTo(dest) assert.Equal(t, orig, dest) - orig.BytesVal()[0] = 10 + orig.MBytesVal()[0] = 10 assert.NotEqual(t, orig, dest) - assert.Equal(t, []byte{1, 2, 3}, dest.BytesVal()) - assert.Equal(t, []byte{10, 2, 3}, orig.BytesVal()) + assert.Equal(t, []byte{1, 2, 3}, dest.MBytesVal()) + assert.Equal(t, []byte{10, 2, 3}, orig.MBytesVal()) } func TestMap_Update(t *testing.T) { diff --git a/pdata/internal/metrics.go b/pdata/internal/metrics.go index 75bbc39a384..1a032c0f716 100644 --- a/pdata/internal/metrics.go +++ b/pdata/internal/metrics.go @@ -284,39 +284,3 @@ func (ot OptionalType) String() string { } return "" } - -// BucketCounts returns the bucketcounts associated with this HistogramDataPoint. -// Deprecated: [0.51.0] Use MBucketCounts instead. -func (ms HistogramDataPoint) BucketCounts() []uint64 { - return ms.orig.BucketCounts -} - -// SetBucketCounts replaces the bucketcounts associated with this HistogramDataPoint. -// Deprecated: [0.51.0] Use SetMBucketCounts instead. -func (ms HistogramDataPoint) SetBucketCounts(v []uint64) { - ms.orig.BucketCounts = v -} - -// ExplicitBounds returns the explicitbounds associated with this HistogramDataPoint. -// Deprecated: [0.51.0] Use MExplicitBounds instead. -func (ms HistogramDataPoint) ExplicitBounds() []float64 { - return ms.orig.ExplicitBounds -} - -// SetExplicitBounds replaces the explicitbounds associated with this HistogramDataPoint. -// Deprecated: [0.51.0] Use SetMExplicitBounds instead. -func (ms HistogramDataPoint) SetExplicitBounds(v []float64) { - ms.orig.ExplicitBounds = v -} - -// BucketCounts returns the bucketcounts associated with this Buckets. -// Deprecated: [0.51.0] Use MBucketCounts instead. -func (ms Buckets) BucketCounts() []uint64 { - return ms.orig.BucketCounts -} - -// SetBucketCounts replaces the bucketcounts associated with this Buckets. -// Deprecated: [0.51.0] Use SetMBucketCounts instead. -func (ms Buckets) SetBucketCounts(v []uint64) { - ms.orig.BucketCounts = v -} From d11fe93cade607f776051a5bfc2c65eb73a88ce9 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Thu, 19 May 2022 08:54:23 -0700 Subject: [PATCH 55/67] Define stability guarantees for v1 API (#5397) --- VERSIONING.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/VERSIONING.md b/VERSIONING.md index f1d04d26ffe..08e1b9ca547 100644 --- a/VERSIONING.md +++ b/VERSIONING.md @@ -102,3 +102,17 @@ is designed so that the following goal can be achieved: * Contrib modules will be kept up to date with this project's releases. * GitHub releases will be made for all releases. * Go modules will be made available at Go package mirrors. +* Stability guaranties of modules versioned as `v1` or higher are aligned with [Go 1 compatibility + promise](https://go.dev/doc/go1compat). OpenTelemetry authors reserve the right to introduce API changes breaking + compatibility between minor versions in the following scenarios: + * **Struct literals.** It may be necessary to add new fields to exported structs in the API. Code that uses unkeyed + struct literals (such as pkg.T{3, "x"}) to create values of these types would fail to compile after such a change. + However, code that uses keyed literals (pkg.T{A: 3, B: "x"}) will continue to compile. We therefore recommend + using OpenTelemetry collector structs with the keyed literals only. + * **Methods.** As with struct fields, it may be necessary to add methods to types. Under some circumstances, + such as when the type is embedded in a struct along with another type, the addition of the new method may + break the struct by creating a conflict with an existing method of the other embedded type. We cannot protect + against this rare case and do not guarantee compatibility in such scenarios. + * **Dot imports.** If a program imports a package using `import .`, additional names defined in the imported package + in future releases may conflict with other names defined in the program. We do not recommend the use of + `import .` with OpenTelemetry Collector modules. From 95c5f4d682e4d0c4cc4610904327f4ade756f410 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Thu, 19 May 2022 13:40:23 -0700 Subject: [PATCH 56/67] [pdata] Rename `Value.NewValueBytes ` to Value.NewValueBytes (#5400) Deprecate `pcommon.Value.NewValueBytes` in favor of `Value.NewValueMBytes` in preparation of migration to the new immutable slices. --- CHANGELOG.md | 2 ++ pdata/internal/common.go | 6 +++--- pdata/internal/common_test.go | 18 +++++++++--------- pdata/pcommon/alias.go | 8 +++++++- 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e296ab9370..3d42bf27011 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ - Deprecate `config.Config` and `config.Service`, use `service.Config*` (#4608) - Deprecate `componenterror` package, move everything to `component` (#5383) +- `pcommon.Value.NewValueBytes` is deprecated in favor of `Value.NewValueMBytes` in preparation of migration to + immutable slices (#5367) ### 💡 Enhancements 💡 diff --git a/pdata/internal/common.go b/pdata/internal/common.go index d4800bd1439..225fc80af54 100644 --- a/pdata/internal/common.go +++ b/pdata/internal/common.go @@ -125,10 +125,10 @@ func NewValueSlice() Value { return Value{orig: &otlpcommon.AnyValue{Value: &otlpcommon.AnyValue_ArrayValue{ArrayValue: &otlpcommon.ArrayValue{}}}} } -// NewValueBytes creates a new Value with the given []byte value. +// NewValueMBytes creates a new Value with the given []byte value. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data // across multiple attributes is forbidden. -func NewValueBytes(v []byte) Value { +func NewValueMBytes(v []byte) Value { return Value{orig: &otlpcommon.AnyValue{Value: &otlpcommon.AnyValue_BytesValue{BytesValue: v}}} } @@ -165,7 +165,7 @@ func newValueFromRaw(iv interface{}) Value { case bool: return NewValueBool(tv) case []byte: - return NewValueBytes(tv) + return NewValueMBytes(tv) case map[string]interface{}: mv := NewValueMap() NewMapFromRaw(tv).CopyTo(mv.MapVal()) diff --git a/pdata/internal/common_test.go b/pdata/internal/common_test.go index 10680b7db6e..c4ed91fcadc 100644 --- a/pdata/internal/common_test.go +++ b/pdata/internal/common_test.go @@ -64,7 +64,7 @@ func TestAttributeValue(t *testing.T) { assert.True(t, v.BoolVal()) bytesValue := []byte{1, 2, 3, 4} - v = NewValueBytes(bytesValue) + v = NewValueMBytes(bytesValue) assert.EqualValues(t, ValueTypeBytes, v.Type()) assert.EqualValues(t, bytesValue, v.MBytesVal()) } @@ -224,14 +224,14 @@ func TestAttributeValueEqual(t *testing.T) { av1 = NewValueBool(false) assert.True(t, av1.Equal(av2)) - av2 = NewValueBytes([]byte{1, 2, 3}) + av2 = NewValueMBytes([]byte{1, 2, 3}) assert.False(t, av1.Equal(av2)) assert.False(t, av2.Equal(av1)) - av1 = NewValueBytes([]byte{1, 2, 4}) + av1 = NewValueMBytes([]byte{1, 2, 4}) assert.False(t, av1.Equal(av2)) - av1 = NewValueBytes([]byte{1, 2, 3}) + av1 = NewValueMBytes([]byte{1, 2, 3}) assert.True(t, av1.Equal(av2)) av1 = NewValueSlice() @@ -664,7 +664,7 @@ func TestAttributeValue_copyTo(t *testing.T) { } func TestValueBytes_CopyTo(t *testing.T) { - orig := NewValueBytes([]byte{1, 2, 3}) + orig := NewValueMBytes([]byte{1, 2, 3}) dest := NewValueEmpty() orig.CopyTo(dest) assert.Equal(t, orig, dest) @@ -1087,7 +1087,7 @@ func TestAsString(t *testing.T) { }, { name: "bytes", - input: NewValueBytes([]byte("String bytes")), + input: NewValueMBytes([]byte("String bytes")), expected: base64.StdEncoding.EncodeToString([]byte("String bytes")), }, } @@ -1122,12 +1122,12 @@ func TestValueAsRaw(t *testing.T) { }, { name: "bytes", - input: NewValueBytes([]byte("bytes")), + input: NewValueMBytes([]byte("bytes")), expected: []byte("bytes"), }, { name: "bytes", - input: NewValueBytes([]byte("bytes")), + input: NewValueMBytes([]byte("bytes")), expected: []byte("bytes"), }, { @@ -1286,7 +1286,7 @@ func TestNewValueFromRaw(t *testing.T) { { name: "bytes", input: []byte{1, 2, 3}, - expected: NewValueBytes([]byte{1, 2, 3}), + expected: NewValueMBytes([]byte{1, 2, 3}), }, { name: "map", diff --git a/pdata/pcommon/alias.go b/pdata/pcommon/alias.go index 7e3319f0fb4..982509f2dae 100644 --- a/pdata/pcommon/alias.go +++ b/pdata/pcommon/alias.go @@ -76,7 +76,13 @@ var ( // NewValueBytes creates a new Value with the given []byte value. // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data // across multiple attributes is forbidden. - NewValueBytes = internal.NewValueBytes + // Deprecated: [0.52.0] Use NewValueMBytes instead. Signature of this func will be changed to accept new immutable slice type in 0.53.0. + NewValueBytes = internal.NewValueMBytes + + // NewValueMBytes creates a new Value with the given []byte value. + // The caller must ensure the []byte passed in is not modified after the call is made, sharing the data + // across multiple attributes is forbidden. + NewValueMBytes = internal.NewValueMBytes ) // Map stores a map of string keys to elements of Value type. From c56d20e9e0afccc43179da12f60e24e5729caca9 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 19 May 2022 14:11:45 -0700 Subject: [PATCH 57/67] [otlp] add optional min/max fields to histograms (#5399) * [otlp] add optional min/max fields to histograms Fixes #5380 * update changelog * don't bother defining reusable variables --- CHANGELOG.md | 1 + .../cmd/pdatagen/internal/metrics_structs.go | 36 +++++++++ pdata/internal/generated_pmetric.go | 80 +++++++++++++++++++ pdata/internal/generated_pmetric_test.go | 36 +++++++++ 4 files changed, 153 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d42bf27011..3692f06d5f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ ### 💡 Enhancements 💡 - Update OTLP to v0.17.0 (#5335) + - Add optional min/max fields to histograms (#5399) ### 🧰 Bug fixes 🧰 diff --git a/pdata/internal/cmd/pdatagen/internal/metrics_structs.go b/pdata/internal/cmd/pdatagen/internal/metrics_structs.go index a3023fc87f5..5db1decbe03 100644 --- a/pdata/internal/cmd/pdatagen/internal/metrics_structs.go +++ b/pdata/internal/cmd/pdatagen/internal/metrics_structs.go @@ -289,6 +289,24 @@ var histogramDataPoint = &messageValueStruct{ explicitBoundsField, exemplarsField, dataPointFlagsField, + &optionalPrimitiveValue{ + fieldName: "Min", + fieldType: "Double", + originFieldName: "Min", + originTypePrefix: "otlpmetrics.HistogramDataPoint_", + returnType: "float64", + defaultVal: "float64(0.0)", + testVal: "float64(9.23)", + }, + &optionalPrimitiveValue{ + fieldName: "Max", + fieldType: "Double", + originFieldName: "Max", + originTypePrefix: "otlpmetrics.HistogramDataPoint_", + returnType: "float64", + defaultVal: "float64(0.0)", + testVal: "float64(182.55)", + }, }, } @@ -338,6 +356,24 @@ var exponentialHistogramDataPoint = &messageValueStruct{ }, exemplarsField, dataPointFlagsField, + &optionalPrimitiveValue{ + fieldName: "Min", + fieldType: "Double", + originFieldName: "Min", + originTypePrefix: "otlpmetrics.ExponentialHistogramDataPoint_", + returnType: "float64", + defaultVal: "float64(0.0)", + testVal: "float64(9.23)", + }, + &optionalPrimitiveValue{ + fieldName: "Max", + fieldType: "Double", + originFieldName: "Max", + originTypePrefix: "otlpmetrics.ExponentialHistogramDataPoint_", + returnType: "float64", + defaultVal: "float64(0.0)", + testVal: "float64(182.55)", + }, }, } diff --git a/pdata/internal/generated_pmetric.go b/pdata/internal/generated_pmetric.go index 7806df195ac..abdf3b7019c 100644 --- a/pdata/internal/generated_pmetric.go +++ b/pdata/internal/generated_pmetric.go @@ -1479,6 +1479,38 @@ func (ms HistogramDataPoint) SetFlags(v MetricDataPointFlags) { (*ms.orig).Flags = uint32(v) } +// Min returns the min associated with this HistogramDataPoint. +func (ms HistogramDataPoint) Min() float64 { + return (*ms.orig).GetMin() +} + +// HasMin returns true if the HistogramDataPoint contains a +// Min value, false otherwise. +func (ms HistogramDataPoint) HasMin() bool { + return ms.orig.Min_ != nil +} + +// SetMin replaces the min associated with this HistogramDataPoint. +func (ms HistogramDataPoint) SetMin(v float64) { + (*ms.orig).Min_ = &otlpmetrics.HistogramDataPoint_Min{Min: v} +} + +// Max returns the max associated with this HistogramDataPoint. +func (ms HistogramDataPoint) Max() float64 { + return (*ms.orig).GetMax() +} + +// HasMax returns true if the HistogramDataPoint contains a +// Max value, false otherwise. +func (ms HistogramDataPoint) HasMax() bool { + return ms.orig.Max_ != nil +} + +// SetMax replaces the max associated with this HistogramDataPoint. +func (ms HistogramDataPoint) SetMax(v float64) { + (*ms.orig).Max_ = &otlpmetrics.HistogramDataPoint_Max{Max: v} +} + // CopyTo copies all properties from the current struct to the dest. func (ms HistogramDataPoint) CopyTo(dest HistogramDataPoint) { ms.Attributes().CopyTo(dest.Attributes()) @@ -1505,6 +1537,14 @@ func (ms HistogramDataPoint) CopyTo(dest HistogramDataPoint) { ms.Exemplars().CopyTo(dest.Exemplars()) dest.SetFlags(ms.Flags()) + if ms.HasMin() { + dest.SetMin(ms.Min()) + } + + if ms.HasMax() { + dest.SetMax(ms.Max()) + } + } // ExponentialHistogramDataPointSlice logically represents a slice of ExponentialHistogramDataPoint. @@ -1767,6 +1807,38 @@ func (ms ExponentialHistogramDataPoint) SetFlags(v MetricDataPointFlags) { (*ms.orig).Flags = uint32(v) } +// Min returns the min associated with this ExponentialHistogramDataPoint. +func (ms ExponentialHistogramDataPoint) Min() float64 { + return (*ms.orig).GetMin() +} + +// HasMin returns true if the ExponentialHistogramDataPoint contains a +// Min value, false otherwise. +func (ms ExponentialHistogramDataPoint) HasMin() bool { + return ms.orig.Min_ != nil +} + +// SetMin replaces the min associated with this ExponentialHistogramDataPoint. +func (ms ExponentialHistogramDataPoint) SetMin(v float64) { + (*ms.orig).Min_ = &otlpmetrics.ExponentialHistogramDataPoint_Min{Min: v} +} + +// Max returns the max associated with this ExponentialHistogramDataPoint. +func (ms ExponentialHistogramDataPoint) Max() float64 { + return (*ms.orig).GetMax() +} + +// HasMax returns true if the ExponentialHistogramDataPoint contains a +// Max value, false otherwise. +func (ms ExponentialHistogramDataPoint) HasMax() bool { + return ms.orig.Max_ != nil +} + +// SetMax replaces the max associated with this ExponentialHistogramDataPoint. +func (ms ExponentialHistogramDataPoint) SetMax(v float64) { + (*ms.orig).Max_ = &otlpmetrics.ExponentialHistogramDataPoint_Max{Max: v} +} + // CopyTo copies all properties from the current struct to the dest. func (ms ExponentialHistogramDataPoint) CopyTo(dest ExponentialHistogramDataPoint) { ms.Attributes().CopyTo(dest.Attributes()) @@ -1780,6 +1852,14 @@ func (ms ExponentialHistogramDataPoint) CopyTo(dest ExponentialHistogramDataPoin ms.Negative().CopyTo(dest.Negative()) ms.Exemplars().CopyTo(dest.Exemplars()) dest.SetFlags(ms.Flags()) + if ms.HasMin() { + dest.SetMin(ms.Min()) + } + + if ms.HasMax() { + dest.SetMax(ms.Max()) + } + } // Buckets are a set of bucket counts, encoded in a contiguous array of counts. diff --git a/pdata/internal/generated_pmetric_test.go b/pdata/internal/generated_pmetric_test.go index c0706d647be..6e03b5f6440 100644 --- a/pdata/internal/generated_pmetric_test.go +++ b/pdata/internal/generated_pmetric_test.go @@ -1147,6 +1147,22 @@ func TestHistogramDataPoint_Flags(t *testing.T) { assert.EqualValues(t, testValFlags, ms.Flags()) } +func TestHistogramDataPoint_Min(t *testing.T) { + ms := NewHistogramDataPoint() + assert.EqualValues(t, float64(0.0), ms.Min()) + testValMin := float64(9.23) + ms.SetMin(testValMin) + assert.EqualValues(t, testValMin, ms.Min()) +} + +func TestHistogramDataPoint_Max(t *testing.T) { + ms := NewHistogramDataPoint() + assert.EqualValues(t, float64(0.0), ms.Max()) + testValMax := float64(182.55) + ms.SetMax(testValMax) + assert.EqualValues(t, testValMax, ms.Max()) +} + func TestExponentialHistogramDataPointSlice(t *testing.T) { es := NewExponentialHistogramDataPointSlice() assert.EqualValues(t, 0, es.Len()) @@ -1359,6 +1375,22 @@ func TestExponentialHistogramDataPoint_Flags(t *testing.T) { assert.EqualValues(t, testValFlags, ms.Flags()) } +func TestExponentialHistogramDataPoint_Min(t *testing.T) { + ms := NewExponentialHistogramDataPoint() + assert.EqualValues(t, float64(0.0), ms.Min()) + testValMin := float64(9.23) + ms.SetMin(testValMin) + assert.EqualValues(t, testValMin, ms.Min()) +} + +func TestExponentialHistogramDataPoint_Max(t *testing.T) { + ms := NewExponentialHistogramDataPoint() + assert.EqualValues(t, float64(0.0), ms.Max()) + testValMax := float64(182.55) + ms.SetMax(testValMax) + assert.EqualValues(t, testValMax, ms.Max()) +} + func TestBuckets_MoveTo(t *testing.T) { ms := generateTestBuckets() dest := NewBuckets() @@ -2095,6 +2127,8 @@ func fillTestHistogramDataPoint(tv HistogramDataPoint) { tv.SetMExplicitBounds([]float64{1, 2, 3}) fillTestExemplarSlice(tv.Exemplars()) tv.SetFlags(MetricDataPointFlagsNone) + tv.SetMin(float64(9.23)) + tv.SetMax(float64(182.55)) } func generateTestExponentialHistogramDataPointSlice() ExponentialHistogramDataPointSlice { @@ -2129,6 +2163,8 @@ func fillTestExponentialHistogramDataPoint(tv ExponentialHistogramDataPoint) { fillTestBuckets(tv.Negative()) fillTestExemplarSlice(tv.Exemplars()) tv.SetFlags(MetricDataPointFlagsNone) + tv.SetMin(float64(9.23)) + tv.SetMax(float64(182.55)) } func generateTestBuckets() Buckets { From 1c7c8d6960fa9f353495fec06d927452b5f46fb5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 May 2022 07:29:41 -0700 Subject: [PATCH 58/67] Bump goreleaser/goreleaser-action from 2 to 3 (#5407) Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 2 to 3. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v2...v3) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/builder-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/builder-release.yaml b/.github/workflows/builder-release.yaml index 5cb05b22696..b29297c3d79 100644 --- a/.github/workflows/builder-release.yaml +++ b/.github/workflows/builder-release.yaml @@ -18,7 +18,7 @@ jobs: with: go-version: 1.18 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v3 with: distribution: goreleaser-pro version: latest From 5c7313f3fc6f38fadb359702280aee1f26822887 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 May 2022 07:30:18 -0700 Subject: [PATCH 59/67] Bump github.com/golangci/golangci-lint in /internal/tools (#5406) Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.46.1 to 1.46.2. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](https://github.com/golangci/golangci-lint/compare/v1.46.1...v1.46.2) --- updated-dependencies: - dependency-name: github.com/golangci/golangci-lint dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- internal/tools/go.mod | 6 ++--- internal/tools/go.sum | 63 ++++++++++++++++++++++++++++++++++++++----- 2 files changed, 60 insertions(+), 9 deletions(-) diff --git a/internal/tools/go.mod b/internal/tools/go.mod index 8e237cd5de6..3f26f3c94b0 100644 --- a/internal/tools/go.mod +++ b/internal/tools/go.mod @@ -4,7 +4,7 @@ go 1.17 require ( github.com/client9/misspell v0.3.4 - github.com/golangci/golangci-lint v1.46.1 + github.com/golangci/golangci-lint v1.46.2 github.com/google/addlicense v1.0.0 github.com/jcchavezs/porto v0.4.0 github.com/ory/go-acc v0.2.8 @@ -112,7 +112,7 @@ require ( github.com/ldez/gomoddirectives v0.2.3 // indirect github.com/ldez/tagliatelle v0.3.1 // indirect github.com/leonklingele/grouper v1.1.0 // indirect - github.com/lufeee/execinquery v1.2.0 // indirect + github.com/lufeee/execinquery v1.2.1 // indirect github.com/magiconair/properties v1.8.6 // indirect github.com/maratori/testpackage v1.0.1 // indirect github.com/matoous/godox v0.0.0-20210227103229-6504466cf951 // indirect @@ -138,7 +138,7 @@ require ( github.com/phayes/checkstyle v0.0.0-20170904204023-bfd46e6a821d // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/polyfloyd/go-errorlint v0.0.0-20211125173453-6d6d39c5bb8b // indirect + github.com/polyfloyd/go-errorlint v1.0.0 // indirect github.com/prometheus/client_golang v1.12.1 // indirect github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/common v0.34.0 // indirect diff --git a/internal/tools/go.sum b/internal/tools/go.sum index dee16a99a15..513ca231d63 100644 --- a/internal/tools/go.sum +++ b/internal/tools/go.sum @@ -31,6 +31,7 @@ cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aD cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= @@ -64,6 +65,7 @@ github.com/Antonboom/errname v0.1.6/go.mod h1:7lz79JAnuoMNDAWE9MeeIr1/c/VpSUWatB github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -98,6 +100,8 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= +github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= @@ -229,6 +233,7 @@ github.com/firefart/nonamedreturns v1.0.1 h1:fSvcq6ZpK/uBAgJEGMvzErlzyM4NELLqqdT github.com/firefart/nonamedreturns v1.0.1/go.mod h1:D3dpIBojGGNh5UfElmwPu73SwDCm+VKhHYqwlNOk2uQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.2 h1:SPb1KFFmM+ybpEjPUhCCkZOM5xlovT5UbrMvWnXyBns= +github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= @@ -262,6 +267,7 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= @@ -340,8 +346,8 @@ github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe h1:6RGUuS7EGotKx6 github.com/golangci/go-misc v0.0.0-20220329215616-d24fe342adfe/go.mod h1:gjqyPShc/m8pEMpk0a3SeagVb0kaqvhscv+i9jI5ZhQ= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a h1:iR3fYXUjHCR97qWS8ch1y9zPNsgXThGwjKPrYfqMPks= github.com/golangci/gofmt v0.0.0-20190930125516-244bba706f1a/go.mod h1:9qCChq59u/eW8im404Q2WWTrnBUQKjpNYKMbU4M7EFU= -github.com/golangci/golangci-lint v1.46.1 h1:sc3XD0pprdZuqZkl6snUfnmUT1XW4dTTyLeOBvxn+3M= -github.com/golangci/golangci-lint v1.46.1/go.mod h1:wX6nN6s18dtWgm5Hjmes0sZKOxi+32KCI+OLVQCyhtM= +github.com/golangci/golangci-lint v1.46.2 h1:o90t/Xa6dhJbvy8Bz2RpzUXqrkigp19DLStMolTZbyo= +github.com/golangci/golangci-lint v1.46.2/go.mod h1:3DkdHnxn9eoTTrpT2gB0TEv8KSziuoqe9FitgQLHvAY= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0 h1:MfyDlzVjl1hoaPzPD4Gpb/QgoRfSBR0jdhwGyAWwMSA= github.com/golangci/lint-1 v0.0.0-20191013205115-297bf364a8e0/go.mod h1:66R6K6P6VWk9I95jvqGxkqJxVWGFy9XlDwLwVz1RCFg= github.com/golangci/maligned v0.0.0-20180506175553-b1d89398deca h1:kNY3/svz5T29MYHubXix4aDDuE3RWHkPvopM/EDv/MA= @@ -426,6 +432,7 @@ github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= +github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= @@ -438,6 +445,7 @@ github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3 github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= +github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= @@ -447,6 +455,7 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= @@ -480,8 +489,11 @@ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uG github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= +github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= +github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= @@ -516,6 +528,7 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfC github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= +github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -541,6 +554,8 @@ github.com/kisielk/errcheck v1.6.0 h1:YTDO4pNy7AUN/021p+JGHycQyYNIyMoenM1YDVK6Rl github.com/kisielk/errcheck v1.6.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= +github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -550,6 +565,7 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= +github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -572,8 +588,9 @@ github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lufeee/execinquery v1.2.0 h1:07LBuxOFCLoNXUuwnRxL1T+ef8rI0gYZRBe2yh9BflU= -github.com/lufeee/execinquery v1.2.0/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= +github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= +github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -616,6 +633,7 @@ github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aks github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= github.com/mgechev/revive v1.2.1 h1:GjFml7ZsoR0IrQ2E2YIvWFNS5GPDV7xNwvA5GM1HZC4= github.com/mgechev/revive v1.2.1/go.mod h1:+Ro3wqY4vakcYNtkBWdZC7dBg1xSB6sp054wWwmeFm0= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= @@ -627,6 +645,7 @@ github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0 github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= @@ -720,10 +739,11 @@ github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qR github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 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/polyfloyd/go-errorlint v0.0.0-20211125173453-6d6d39c5bb8b h1:/BDyEJWLnDUYKGWdlNx/82qSaVu2bUok/EvPUtIGuvw= -github.com/polyfloyd/go-errorlint v0.0.0-20211125173453-6d6d39c5bb8b/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw= +github.com/polyfloyd/go-errorlint v1.0.0 h1:pDrQG0lrh68e602Wfp68BlUTRFoHn8PZYAjLgt2LFsM= +github.com/polyfloyd/go-errorlint v1.0.0/go.mod h1:KZy4xxPJyy88/gldCe5OdW6OQRtNO3EZE7hXzmnebgA= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= +github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= @@ -762,6 +782,7 @@ github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a h1:sWFav github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a/go.mod h1:VMX+OnnSw4LicdiEGtRSD/1X8kW7GuEscjYNr4cOIT4= github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/dsl v0.3.16/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= +github.com/quasilyte/go-ruleguard/dsl v0.3.19/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 h1:PDWGei+Rf2bBiuZIbZmM20J2ftEy9IeUCHA8HbQqed8= @@ -770,9 +791,13 @@ github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= +github.com/remyoudompheng/go-dbus v0.0.0-20121104212943-b7232d34b1d5/go.mod h1:+u151txRmLpwxBmpYn9z3d1sdJdjRPQpsXuYeY9jNls= +github.com/remyoudompheng/go-liblzma v0.0.0-20190506200333-81bf2d431b96/go.mod h1:90HvCY7+oHHUKkbeMCiHt1WuFR2/hPJ9QrljDG+v6ls= +github.com/remyoudompheng/go-misc v0.0.0-20190427085024-2d6ac652a50e/go.mod h1:80FQABjoFzZ2M5uEa6FUaJYEmqU2UOKojlFVak1UAwI= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= @@ -784,6 +809,7 @@ github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoL github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= github.com/sagikazarmark/crypt v0.5.0/go.mod h1:l+nzl7KWh51rpzp2h7t4MZWyiEWdhNpOAnclKvg+mdA= github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= @@ -795,6 +821,7 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= +github.com/shirou/gopsutil/v3 v3.22.4/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= @@ -831,6 +858,7 @@ github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= +github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= @@ -842,6 +870,7 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= +github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= github.com/spf13/viper v1.11.0 h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44= github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUsX7Zk= @@ -882,6 +911,8 @@ github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= +github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= +github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -901,6 +932,10 @@ github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijb github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/uudashr/gocognit v1.0.5 h1:rrSex7oHr3/pPLQ0xoWq108XMU8s678FJcQ+aSfOHa4= github.com/uudashr/gocognit v1.0.5/go.mod h1:wgYz0mitoKOTysqxTDMOUXg+Jb5SvtihkfmugIZYpEA= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= +github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= +github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtcmPA3uNZBI33/qF//HAAs3MawDjRa0= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad/go.mod h1:Hy8o65+MXnS6EwGElrSRjUzQDLXreJlzYLlWiHtt8hM= @@ -923,6 +958,7 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= gitlab.com/bosi/decorder v0.2.1 h1:ehqZe8hI4w7O4b1vgsDZw1YU1PE7iJXrQWFMsocbQ1w= gitlab.com/bosi/decorder v0.2.1/go.mod h1:6C/nhLSbF6qZbYD8bRmISBwc6vcWdNsiIBkRvjJFrH0= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= @@ -966,6 +1002,7 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -979,6 +1016,7 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= +golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= @@ -1031,6 +1069,7 @@ golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1077,6 +1116,7 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -1126,6 +1166,7 @@ golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1174,6 +1215,7 @@ golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1207,6 +1249,7 @@ golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1216,6 +1259,8 @@ golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220403020550-483a9cbc67c0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 h1:xHms4gcpe1YE7A3yIllJXP16CMAGuqwO2lX1mTyyRRc= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1244,6 +1289,7 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/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-20190228203856-589c23e65e65/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -1315,6 +1361,7 @@ golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82u golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201028025901-8cd080b735b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -1376,6 +1423,7 @@ google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqiv google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= @@ -1457,6 +1505,8 @@ google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -1499,6 +1549,7 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= From 37397ab5be337639c4128e6b1dae3d9f24264c2f Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Mon, 23 May 2022 10:51:29 -0600 Subject: [PATCH 60/67] Updating doc to match naming standards (#5395) --- docs/processing.md | 55 +++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/docs/processing.md b/docs/processing.md index 3780dc61747..cae4f47ca0c 100644 --- a/docs/processing.md +++ b/docs/processing.md @@ -147,49 +147,54 @@ the design phase. The Python-like language currently assumes statements can only Remove a forbidden attribute such as `http.request.header.authorization` from spans only -`delete(attributes["http.request.header.authorization"]) from traces` -`delete(attributes["http.request.header.authorization"])` +`delete(attributes["http.request.header.authorization"]) from traces` +`delete(attributes["http.request.header.authorization"])` Remove all attributes except for some -`keep_keys(attributes, "http.method", "http.status_code") from metrics` -`keep_keys(attributes, "http.method", "http.status_code")` +`keep_keys(attributes, "http.method", "http.status_code") from metrics` +`keep_keys(attributes, "http.method", "http.status_code")` Reduce cardinality of an attribute -`replace_wildcards("/user/*/list/*", "/user/{userId}/list/{listId}", attributes["http.target"]) from traces` -`replace_wildcards("/user/*/list/*", "/user/{userId}/list/{listId}", attributes["http.target"])` +`replace_match(attributes["http.target"], "/user/*/list/*", "/user/{userId}/list/{listId}") from traces` +`replace_match(attributes["http.target"], "/user/*/list/*", "/user/{userId}/list/{listId}")` Reduce cardinality of a span name -`replace_wildcards("GET /user/*/list/*", "GET /user/{userId}/list/{listId}", name) from traces` -`replace_wildcards("GET /user/*/list/*", "GET /user/{userId}/list/{listId}", name)` +`replace_match(name, "GET /user/*/list/*", "GET /user/{userId}/list/{listId}") from traces` +`replace_match(name, "GET /user/*/list/*", "GET /user/{userId}/list/{listId}")` + +Reduce cardinality of any matching attribute + +`replace_all_matches(attributes, "/user/*/list/*", "/user/{userId}/list/{listId}") from traces` +`replace_all_matches(attributes, "/user/*/list/*", "/user/{userId}/list/{listId}")` Decrease the size of the telemetry payload by removing large resource attributes -`delete(resource.attributes["process.command_line"]) from traces` -`delete(resource.attributes["process.command_line"])` +`delete(resource.attributes["process.command_line"]) from traces` +`delete(resource.attributes["process.command_line"])` Filtering out signals such as by removing all metrics with a `http.target` of `/health` -`drop() where attributes["http.target"] = "/health" from metrics` -`if attributes["http.target"] = "/health": drop()` +`drop() where attributes["http.target"] = "/health" from metrics` +`if attributes["http.target"] = "/health": drop()` Attach information from resource into telemetry, for example adding certain resource fields as metric attributes -`set(attributes["k8s_pod"], resource.attributes["k8s.pod.name"]) from metrics` -`attributes["k8s_pod"] = resource.attributes["k8s.pod.name"]` +`set(attributes["k8s_pod"], resource.attributes["k8s.pod.name"]) from metrics` +`attributes["k8s_pod"] = resource.attributes["k8s.pod.name"]` Group spans by trace ID -`group_by(trace_id, 2m) from traces` -`group_by(trace_id, 2m)` +`group_by(trace_id, 2m) from traces` +`group_by(trace_id, 2m)` Create utilization metric from base metrics. Because navigation expressions only operate on a single piece of telemetry, helper functions for reading values from other metrics need to be provided. -`create_gauge("pod.cpu.utilized", read_gauge("pod.cpu.usage") / read_gauge("node.cpu.limit") from metric` -`create_gauge("pod.cpu.utilized", read_gauge("pod.cpu.usage") / read_gauge("node.cpu.limit")` +`create_gauge("pod.cpu.utilized", read_gauge("pod.cpu.usage") / read_gauge("node.cpu.limit") from metric` +`create_gauge("pod.cpu.utilized", read_gauge("pod.cpu.usage") / read_gauge("node.cpu.limit")` A lot of processing. Queries are executed in order. While initially performance may degrade compared to more specialized processors, the expectation is that over time, the query processor's engine would improve to be able to apply optimizations @@ -254,27 +259,27 @@ implementation, it would likely be little overhead to support a YAML approach in Functions should be named and formatted according to the following standards. - Function names MUST start with a verb. - Function names that contain multiple words MUST separate those words with `_`. -- Functions that interact with multiple items MUST have plurality in the name. Ex: `truncate_all`, `keep_keys`, `replace_wildcards`. -- Functions that interact with a single item MUST NOT have plurality in the name. If a function would interact with multiple items due to a condition, like `where`, it is still considered singular. Ex: `set`, `delete`, `drop`. +- Functions that interact with multiple items MUST have plurality in the name. Ex: `truncate_all`, `keep_keys`, `replace_all_matches`. +- Functions that interact with a single item MUST NOT have plurality in the name. If a function would interact with multiple items due to a condition, like `where`, it is still considered singular. Ex: `set`, `delete`, `drop`, `replace_match`. - Functions that change a specific target MUST set the target as the first parameter. - Functions that take a list MUST set the list as the last parameter. ## Implementing a processor function -The `replace_wildcards` function may look like this. +The `replace_match` function may look like this. ```go -package replacewildcards +package replaceMatch import "regexp" import "github.com/open-telemetry/opentelemetry/processors" // Assuming this is not in "core" -processors.register("replace_wildcards", replace_wildcards) +processors.register("replace_match", replace_match) -func replace_wildcards(pattern regexp.Regexp, replacement string, path processors.TelemetryPath) processors.Result { +func replace_match(path processors.TelemetryPath, pattern regexp.Regexp, replacement string) processors.Result { val := path.Get() if val == nil { return processors.CONTINUE @@ -287,7 +292,7 @@ func replace_wildcards(pattern regexp.Regexp, replacement string, path processor } ``` -Here, the processor framework recognizes the first parameter of the function is `regexp.Regexp` so will compile the string +Here, the processor framework recognizes the second parameter of the function is `regexp.Regexp` so will compile the string provided by the user in the config when processing it. Similarly for `path`, it recognizes properties of type `TelemetryPath` and will resolve it to the path within a matched telemetry during execution and pass it to the function. The path allows scalar operations on the field within the telemetry. The processor does not need to be aware of telemetry filtering, From 82d92526afebb29efe007d438fd115410292fdda Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 24 May 2022 15:20:13 -0700 Subject: [PATCH 61/67] BreakingChange: Change to use interface instead of func for MapConverter (#5382) The main reason to do this, is because if in the future we want to extend the capabilities of the "MapConverter" we don't have any way to do that. By using an interface we can define "optional" interfaces that some converters may implement to enable future improvements. Signed-off-by: Bogdan Drutu --- CHANGELOG.md | 1 + config/README.md | 4 +-- config/configmap.go | 5 --- config/mapconverter.go | 34 +++++++++++++++++++ .../mapconverter/expandmapconverter/expand.go | 18 ++++++---- .../expandmapconverter/expand_test.go | 6 ++-- .../properties.go | 18 +++++----- .../properties_test.go | 6 ++-- service/collector_test.go | 2 +- service/collector_windows.go | 2 +- service/command.go | 2 +- service/config_provider.go | 8 ++--- service/mapresolver.go | 8 ++--- service/mapresolver_test.go | 12 +++++-- 14 files changed, 85 insertions(+), 41 deletions(-) create mode 100644 config/mapconverter.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 3692f06d5f1..d086fd51cc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ `HistogramDataPoint.SetExplicitBounds` (#5347) - Remove derecated featuregate funcs/structs from v0.50.0 (#5346) - Remove access to deprecated members of the config.Retrieved struct (#5363) +- Replace usage of `config.MapConverterFunc` with `config.MapConverter` (#5382) ### 🚩 Deprecations 🚩 diff --git a/config/README.md b/config/README.md index b857765c173..b2d94829160 100644 --- a/config/README.md +++ b/config/README.md @@ -18,12 +18,12 @@ characters long to avoid conflicting with a driver-letter identifier as specifie ## MapConverter -The [MapConverter](configmap.go) allows implementing conversion logic for the provided configuration. One of the most +The [MapConverter](mapconverter.go) allows implementing conversion logic for the provided configuration. One of the most common use-case is to migrate/transform the configuration after a backwards incompatible change. ## MapResolver -The `MapResolver` handles the use of multiple [MapProviders](./mapprovider.go) and [MapConverters](./configmap.go) +The `MapResolver` handles the use of multiple [MapProviders](#mapprovider) and [MapConverters](#mapconverter) simplifying configuration parsing, monitoring for updates, and the overall life-cycle of the used config providers. The `MapResolver` provides two main functionalities: [Configuration Resolving](#configuration-resolving) and [Watching for Updates](#watching-for-updates). diff --git a/config/configmap.go b/config/configmap.go index 2ff60555786..1253f1512cd 100644 --- a/config/configmap.go +++ b/config/configmap.go @@ -15,7 +15,6 @@ package config // import "go.opentelemetry.io/collector/config" import ( - "context" "encoding" "fmt" "reflect" @@ -31,10 +30,6 @@ const ( KeyDelimiter = "::" ) -// MapConverterFunc is a converter function for the config.Map that allows distributions -// (in the future components as well) to build backwards compatible config converters. -type MapConverterFunc func(context.Context, *Map) error - // NewMap creates a new empty config.Map instance. func NewMap() *Map { return &Map{k: koanf.New(KeyDelimiter)} diff --git a/config/mapconverter.go b/config/mapconverter.go new file mode 100644 index 00000000000..f01b52a4141 --- /dev/null +++ b/config/mapconverter.go @@ -0,0 +1,34 @@ +// 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 config // import "go.opentelemetry.io/collector/config" + +import ( + "context" +) + +// MapConverter is a converter interface for the config.Map that allows distributions +// (in the future components as well) to build backwards compatible config converters. +type MapConverter interface { + // Convert applies the conversion logic to the given "cfgMap". + Convert(ctx context.Context, cfgMap *Map) error +} + +// Deprecated: Implement MapConverter interface. +type MapConverterFunc func(context.Context, *Map) error + +// Convert implements MapConverter.Convert func. +func (f MapConverterFunc) Convert(ctx context.Context, cfgMap *Map) error { + return f(ctx, cfgMap) +} diff --git a/config/mapconverter/expandmapconverter/expand.go b/config/mapconverter/expandmapconverter/expand.go index 8fe624fdb12..44d6398e7f7 100644 --- a/config/mapconverter/expandmapconverter/expand.go +++ b/config/mapconverter/expandmapconverter/expand.go @@ -21,16 +21,20 @@ import ( "go.opentelemetry.io/collector/config" ) -// New returns a config.MapConverterFunc, that expands all environment variables for a given config.Map. +type converter struct{} + +// New returns a config.MapConverter, that expands all environment variables for a given config.Map. // // Notice: This API is experimental. -func New() config.MapConverterFunc { - return func(_ context.Context, cfgMap *config.Map) error { - for _, k := range cfgMap.AllKeys() { - cfgMap.Set(k, expandStringValues(cfgMap.Get(k))) - } - return nil +func New() config.MapConverter { + return converter{} +} + +func (converter) Convert(_ context.Context, cfgMap *config.Map) error { + for _, k := range cfgMap.AllKeys() { + cfgMap.Set(k, expandStringValues(cfgMap.Get(k))) } + return nil } func expandStringValues(value interface{}) interface{} { diff --git a/config/mapconverter/expandmapconverter/expand_test.go b/config/mapconverter/expandmapconverter/expand_test.go index 5bacde7fecd..7697d10df49 100644 --- a/config/mapconverter/expandmapconverter/expand_test.go +++ b/config/mapconverter/expandmapconverter/expand_test.go @@ -56,7 +56,7 @@ func TestNewExpandConverter(t *testing.T) { require.NoError(t, err, "Unable to get config") // Test that expanded configs are the same with the simple config with no env vars. - require.NoError(t, New()(context.Background(), cfgMap)) + require.NoError(t, New().Convert(context.Background(), cfgMap)) assert.Equal(t, expectedCfgMap.ToStringMap(), cfgMap.ToStringMap()) }) } @@ -75,7 +75,7 @@ func TestNewExpandConverter_EscapedMaps(t *testing.T) { "recv": "$MAP_VALUE", }}, ) - require.NoError(t, New()(context.Background(), cfgMap)) + require.NoError(t, New().Convert(context.Background(), cfgMap)) expectedMap := map[string]interface{}{ "test_string_map": map[string]interface{}{ @@ -112,6 +112,6 @@ func TestNewExpandConverter_EscapedEnvVars(t *testing.T) { // escaped $ alone "recv.7": "$", }} - require.NoError(t, New()(context.Background(), cfgMap)) + require.NoError(t, New().Convert(context.Background(), cfgMap)) assert.Equal(t, expectedMap, cfgMap.ToStringMap()) } diff --git a/config/mapconverter/overwritepropertiesmapconverter/properties.go b/config/mapconverter/overwritepropertiesmapconverter/properties.go index 93e230fda2a..152dab4ce63 100644 --- a/config/mapconverter/overwritepropertiesmapconverter/properties.go +++ b/config/mapconverter/overwritepropertiesmapconverter/properties.go @@ -25,25 +25,27 @@ import ( "go.opentelemetry.io/collector/config" ) -// New returns a config.MapConverterFunc, that overrides all the given properties into the +type converter struct { + properties []string +} + +// New returns a config.MapConverter, that overrides all the given properties into the // input map. // // Properties must follow the Java properties format, key-value list separated by equal sign with a "." // as key delimiter. // ["processors.batch.timeout=2s", "processors.batch/foo.timeout=3s"] -func New(properties []string) config.MapConverterFunc { - return func(_ context.Context, cfgMap *config.Map) error { - return convert(properties, cfgMap) - } +func New(properties []string) config.MapConverter { + return &converter{properties: properties} } -func convert(propsStr []string, cfgMap *config.Map) error { - if len(propsStr) == 0 { +func (c *converter) Convert(_ context.Context, cfgMap *config.Map) error { + if len(c.properties) == 0 { return nil } b := &bytes.Buffer{} - for _, property := range propsStr { + for _, property := range c.properties { property = strings.TrimSpace(property) b.WriteString(property) b.WriteString("\n") diff --git a/config/mapconverter/overwritepropertiesmapconverter/properties_test.go b/config/mapconverter/overwritepropertiesmapconverter/properties_test.go index cf18cca7eb9..1ab2e7daf15 100644 --- a/config/mapconverter/overwritepropertiesmapconverter/properties_test.go +++ b/config/mapconverter/overwritepropertiesmapconverter/properties_test.go @@ -27,7 +27,7 @@ import ( func TestOverwritePropertiesConverter_Empty(t *testing.T) { pmp := New(nil) cfgMap := config.NewMapFromStringMap(map[string]interface{}{"foo": "bar"}) - assert.NoError(t, pmp(context.Background(), cfgMap)) + assert.NoError(t, pmp.Convert(context.Background(), cfgMap)) assert.Equal(t, map[string]interface{}{"foo": "bar"}, cfgMap.ToStringMap()) } @@ -41,7 +41,7 @@ func TestOverwritePropertiesConverter(t *testing.T) { pmp := New(props) cfgMap := config.NewMap() - require.NoError(t, pmp(context.Background(), cfgMap)) + require.NoError(t, pmp.Convert(context.Background(), cfgMap)) keys := cfgMap.AllKeys() assert.Len(t, keys, 4) assert.Equal(t, "2s", cfgMap.Get("processors::batch::timeout")) @@ -53,5 +53,5 @@ func TestOverwritePropertiesConverter(t *testing.T) { func TestOverwritePropertiesConverter_InvalidProperty(t *testing.T) { pmp := New([]string{"=2s"}) cfgMap := config.NewMap() - assert.Error(t, pmp(context.Background(), cfgMap)) + assert.Error(t, pmp.Convert(context.Background(), cfgMap)) } diff --git a/service/collector_test.go b/service/collector_test.go index 432c5ed931c..4d0899835ed 100644 --- a/service/collector_test.go +++ b/service/collector_test.go @@ -194,7 +194,7 @@ func testCollectorStartHelper(t *testing.T, telemetry collectorTelemetryExporter cfgSet := newDefaultConfigProviderSettings([]string{ filepath.Join("testdata", "otelcol-config.yaml"), }) - cfgSet.MapConverters = append([]config.MapConverterFunc{ + cfgSet.MapConverters = append([]config.MapConverter{ overwritepropertiesmapconverter.New( []string{"service.telemetry.metrics.address=" + metricsAddr}, )}, diff --git a/service/collector_windows.go b/service/collector_windows.go index 1e060d64a23..b9dc2274b65 100644 --- a/service/collector_windows.go +++ b/service/collector_windows.go @@ -144,7 +144,7 @@ func newWithWindowsEventLogCore(set CollectorSettings, elog *eventlog.Log) (*Col cfgSet := newDefaultConfigProviderSettings(getConfigFlag()) // Append the "overwrite properties converter" as the first converter. cfgSet.MapConverters = append( - []config.MapConverterFunc{overwritepropertiesmapconverter.New(getSetFlag())}, + []config.MapConverter{overwritepropertiesmapconverter.New(getSetFlag())}, cfgSet.MapConverters...) set.ConfigProvider, err = NewConfigProvider(cfgSet) if err != nil { diff --git a/service/command.go b/service/command.go index 6130105f9ff..5b7e68aa1fc 100644 --- a/service/command.go +++ b/service/command.go @@ -35,7 +35,7 @@ func NewCommand(set CollectorSettings) *cobra.Command { cfgSet := newDefaultConfigProviderSettings(getConfigFlag()) // Append the "overwrite properties converter" as the first converter. cfgSet.MapConverters = append( - []config.MapConverterFunc{overwritepropertiesmapconverter.New(getSetFlag())}, + []config.MapConverter{overwritepropertiesmapconverter.New(getSetFlag())}, cfgSet.MapConverters...) set.ConfigProvider, err = NewConfigProvider(cfgSet) if err != nil { diff --git a/service/config_provider.go b/service/config_provider.go index 712d2efb978..e6eef5c125a 100644 --- a/service/config_provider.go +++ b/service/config_provider.go @@ -75,22 +75,22 @@ type ConfigProviderSettings struct { // It is required to have at least one config.MapProvider. MapProviders map[string]config.MapProvider - // MapConverters is a slice of config.MapConverterFunc. - MapConverters []config.MapConverterFunc + // MapConverters is a slice of config.MapConverter. + MapConverters []config.MapConverter } func newDefaultConfigProviderSettings(locations []string) ConfigProviderSettings { return ConfigProviderSettings{ Locations: locations, MapProviders: makeMapProvidersMap(filemapprovider.New(), envmapprovider.New(), yamlmapprovider.New()), - MapConverters: []config.MapConverterFunc{expandmapconverter.New()}, + MapConverters: []config.MapConverter{expandmapconverter.New()}, } } // NewConfigProvider returns a new ConfigProvider that provides the service configuration: // * Initially it resolves the "configuration map": // * Retrieve the config.Map by merging all retrieved maps from the given `locations` in order. -// * Then applies all the config.MapConverterFunc in the given order. +// * Then applies all the config.MapConverter in the given order. // * Then unmarshalls the config.Map into the service Config. func NewConfigProvider(set ConfigProviderSettings) (ConfigProvider, error) { mr, err := newMapResolver(set.Locations, set.MapProviders, set.MapConverters) diff --git a/service/mapresolver.go b/service/mapresolver.go index 6c40b9861b0..4a7a24d2b36 100644 --- a/service/mapresolver.go +++ b/service/mapresolver.go @@ -36,7 +36,7 @@ var driverLetterRegexp = regexp.MustCompile("^[A-z]:") type mapResolver struct { uris []string mapProviders map[string]config.MapProvider - mapConverters []config.MapConverterFunc + mapConverters []config.MapConverter sync.Mutex closers []config.CloseFunc @@ -62,7 +62,7 @@ type mapResolver struct { // // `uri` must follow the ":" format. This format is compatible with the URI definition // (see https://datatracker.ietf.org/doc/html/rfc3986). An empty "" defaults to "file" schema. -func newMapResolver(uris []string, mapProviders map[string]config.MapProvider, mapConverters []config.MapConverterFunc) (*mapResolver, error) { +func newMapResolver(uris []string, mapProviders map[string]config.MapProvider, mapConverters []config.MapConverter) (*mapResolver, error) { if len(uris) == 0 { return nil, errors.New("invalid map resolver config: no URIs") } @@ -78,7 +78,7 @@ func newMapResolver(uris []string, mapProviders map[string]config.MapProvider, m for k, v := range mapProviders { mapProvidersCopy[k] = v } - mapConvertersCopy := make([]config.MapConverterFunc, len(mapConverters)) + mapConvertersCopy := make([]config.MapConverter, len(mapConverters)) copy(mapConvertersCopy, mapConverters) return &mapResolver{ @@ -130,7 +130,7 @@ func (mr *mapResolver) Resolve(ctx context.Context) (*config.Map, error) { // Apply the converters in the given order. for _, cfgMapConv := range mr.mapConverters { - if err := cfgMapConv(ctx, retMap); err != nil { + if err := cfgMapConv.Convert(ctx, retMap); err != nil { return nil, fmt.Errorf("cannot convert the config.Map: %w", err) } } diff --git a/service/mapresolver_test.go b/service/mapresolver_test.go index 3a09f6df80c..a750a922405 100644 --- a/service/mapresolver_test.go +++ b/service/mapresolver_test.go @@ -65,12 +65,20 @@ func (m *mockProvider) Shutdown(context.Context) error { return m.errS } +type mockConverter struct { + err error +} + +func (m *mockConverter) Convert(context.Context, *config.Map) error { + return errors.New("converter_err") +} + func TestMapResolver_Errors(t *testing.T) { tests := []struct { name string locations []string mapProviders []config.MapProvider - mapConverters []config.MapConverterFunc + mapConverters []config.MapConverter expectResolveErr bool expectWatchErr bool expectCloseErr bool @@ -95,7 +103,7 @@ func TestMapResolver_Errors(t *testing.T) { name: "converter error", locations: []string{"mock:", filepath.Join("testdata", "otelcol-nop.yaml")}, mapProviders: []config.MapProvider{&mockProvider{}, filemapprovider.New()}, - mapConverters: []config.MapConverterFunc{func(context.Context, *config.Map) error { return errors.New("converter_err") }}, + mapConverters: []config.MapConverter{&mockConverter{err: errors.New("converter_err")}}, expectResolveErr: true, }, { From a809e84a579ad2e8f07775b2f949fa7ce1ba1093 Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Tue, 24 May 2022 16:21:10 -0700 Subject: [PATCH 62/67] Run Windows unit tests for all modules (#5401) --- .github/workflows/build-and-test-windows.yaml | 4 ++-- Makefile | 13 +++++++++---- Makefile.Common | 2 +- cmd/builder/internal/builder/config_test.go | 1 - cmd/builder/internal/builder/main_test.go | 8 ++++++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-test-windows.yaml b/.github/workflows/build-and-test-windows.yaml index 8072d1a22de..293ca7858d9 100644 --- a/.github/workflows/build-and-test-windows.yaml +++ b/.github/workflows/build-and-test-windows.yaml @@ -25,5 +25,5 @@ jobs: ~\go\pkg\mod ~\AppData\Local\go-build key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - - name: Run Unit tests - run: go test ./... + - name: Run Unit Tests + run: make gotest diff --git a/Makefile b/Makefile index 6358b1190bf..181428809ee 100644 --- a/Makefile +++ b/Makefile @@ -146,13 +146,18 @@ install-tools: run: otelcorecol ./bin/otelcorecol_$(GOOS)_$(GOARCH) --config ${RUN_CONFIG} ${RUN_ARGS} +# Append root module to all modules GOMODULES = $(ALL_MODULES) $(PWD) + +# Define a delegation target for each module .PHONY: $(GOMODULES) -MODULEDIRS = $(GOMODULES:%=for-all-target-%) +$(GOMODULES): + @echo "Running target '$(TARGET)' in module '$@'" + $(MAKE) -C $@ $(TARGET) + +# Triggers each module's delegation target .PHONY: for-all-target -for-all-target: $(MODULEDIRS) -$(MODULEDIRS): - $(MAKE) -C $(@:for-all-target-%=%) $(TARGET) +for-all-target: $(GOMODULES) .PHONY: check-component check-component: diff --git a/Makefile.Common b/Makefile.Common index 70cfe2f2a51..2b31c5d405e 100644 --- a/Makefile.Common +++ b/Makefile.Common @@ -3,7 +3,7 @@ ALL_PKGS := $(sort $(shell go list ./...)) # Use a single process (-p 1) on go test to avoid tests clashing on machine # wide resources, e.g. ports. -GOTEST_OPT?= -v -p 1 -race -timeout 60s +GOTEST_OPT?= -v -p 1 -race -timeout 120s GOCMD?= go GOTEST=$(GOCMD) test GO_ACC=go-acc diff --git a/cmd/builder/internal/builder/config_test.go b/cmd/builder/internal/builder/config_test.go index a33a72de824..dc3fcf6f228 100644 --- a/cmd/builder/internal/builder/config_test.go +++ b/cmd/builder/internal/builder/config_test.go @@ -58,7 +58,6 @@ func TestRelativePath(t *testing.T) { // verify cwd, err := os.Getwd() require.NoError(t, err) - assert.True(t, strings.HasPrefix(cfg.Extensions[0].Path, "/")) assert.True(t, strings.HasPrefix(cfg.Extensions[0].Path, cwd)) } diff --git a/cmd/builder/internal/builder/main_test.go b/cmd/builder/internal/builder/main_test.go index c637438d763..ffc25abd6fa 100644 --- a/cmd/builder/internal/builder/main_test.go +++ b/cmd/builder/internal/builder/main_test.go @@ -18,6 +18,7 @@ import ( "io/ioutil" "log" "os" + "runtime" "testing" "github.com/stretchr/testify/assert" @@ -37,14 +38,17 @@ func TestGenerateInvalidCollectorVersion(t *testing.T) { func TestGenerateInvalidOutputPath(t *testing.T) { cfg := NewDefaultConfig() - cfg.Distribution.OutputPath = "/invalid" + cfg.Distribution.OutputPath = "/:invalid" err := Generate(cfg) require.Error(t, err) require.Contains(t, err.Error(), "failed to create output path") } func TestGenerateAndCompileDefault(t *testing.T) { - dir, err := ioutil.TempDir("/tmp", "default") + if runtime.GOOS == "windows" { + t.Skip("skipping the test on Windows, see https://github.com/open-telemetry/opentelemetry-collector/issues/5403") + } + dir, err := ioutil.TempDir("", "default") if err != nil { log.Fatal(err) } From 210ae3d81d88f39f27ea6ca53ca7cfc0deb5746e Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 24 May 2022 16:28:05 -0700 Subject: [PATCH 63/67] Fix deprecated message, missing version (#5411) Signed-off-by: Bogdan Drutu --- component/componenterror/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component/componenterror/errors.go b/component/componenterror/errors.go index a017ba8b0d7..0005ae11236 100644 --- a/component/componenterror/errors.go +++ b/component/componenterror/errors.go @@ -19,9 +19,9 @@ import ( ) var ( - // Deprecated: use component.ErrNilNextConsumer + // Deprecated: [v0.52.0] use component.ErrNilNextConsumer ErrNilNextConsumer = component.ErrNilNextConsumer - // Deprecated: use component.ErrDataTypeIsNotSupported + // Deprecated: [v0.52.0] use component.ErrDataTypeIsNotSupported ErrDataTypeIsNotSupported = component.ErrDataTypeIsNotSupported ) From 5d8d6ec54b0df80203fcc25002803da361c16875 Mon Sep 17 00:00:00 2001 From: Bogdan Drutu Date: Tue, 24 May 2022 16:28:31 -0700 Subject: [PATCH 64/67] Move @bogdandrutu at the end of release schedule (#5412) --- docs/release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release.md b/docs/release.md index 6204e31f28b..1d08e0092a7 100644 --- a/docs/release.md +++ b/docs/release.md @@ -111,10 +111,10 @@ The last step of the release process creates artifacts for the new version of th | Date | Version | Release manager | |------------|---------|-----------------| -| 2022-05-11 | v0.51.0 | @bogdandrutu | | 2022-05-25 | v0.52.0 | @codeboten | | 2022-06-01 | v0.53.0 | @Aneurysm9 | | 2022-06-15 | v0.54.0 | @mx-psi | | 2022-06-29 | v0.55.0 | @tigrannajaryan | | 2022-07-13 | v0.56.0 | @dmitryax | | 2022-07-27 | v0.57.0 | @jpkrohling | +| 2022-08-10 | v0.58.0 | @bogdandrutu | From 9f1596456cb973abfa00309d8685cc079bb0e148 Mon Sep 17 00:00:00 2001 From: Anthony Mirabella Date: Tue, 24 May 2022 19:29:02 -0400 Subject: [PATCH 65/67] Update release schedule (#5410) Signed-off-by: Anthony J Mirabella --- docs/release.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/release.md b/docs/release.md index 1d08e0092a7..9a3101e2447 100644 --- a/docs/release.md +++ b/docs/release.md @@ -112,8 +112,8 @@ The last step of the release process creates artifacts for the new version of th | Date | Version | Release manager | |------------|---------|-----------------| | 2022-05-25 | v0.52.0 | @codeboten | -| 2022-06-01 | v0.53.0 | @Aneurysm9 | -| 2022-06-15 | v0.54.0 | @mx-psi | +| 2022-06-01 | v0.53.0 | @mx-psi | +| 2022-06-15 | v0.54.0 | @Aneurysm9 | | 2022-06-29 | v0.55.0 | @tigrannajaryan | | 2022-07-13 | v0.56.0 | @dmitryax | | 2022-07-27 | v0.57.0 | @jpkrohling | From 8dcdb31fb0d39017d2beb0dc286202de969e3464 Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Wed, 25 May 2022 09:57:07 -0600 Subject: [PATCH 66/67] [Telemetry Query Language] Updated function signal expectations (#5408) * Updated function examples * Added queries block to each signal * Add back cross-signal hope * Fix typo --- docs/processing.md | 107 +++++++++++++++++++++++++++++++-------------- 1 file changed, 74 insertions(+), 33 deletions(-) diff --git a/docs/processing.md b/docs/processing.md index cae4f47ca0c..06fbfc96093 100644 --- a/docs/processing.md +++ b/docs/processing.md @@ -92,7 +92,7 @@ The processors implementing this use case are `k8sattributesprocessor`, `resourc When looking at the use cases, there are certain common features for telemetry mutation and metric generation. -- Identify the type of signal (span, metric, log, resource), or apply to all signals +- Identify the type of signal (`span`, `metric`, `log`). - Navigate to a path within the telemetry to operate on it - Define an operation, and possibly operation arguments @@ -105,7 +105,7 @@ which is roughly a 1:1 mapping of the [OTLP protocol](https://github.com/open-te This data can be navigated using field expressions, which are fields within the protocol separated by dots. For example, the status message of a span is `status.message`. A map lookup can include the key as a string, for example `attributes["http.status_code"]`. -Operations can be scoped to the type of a signal (`span`, `metric`, `log`), with all of the flattened points of that +Operations are scoped to the type of a signal (`span`, `metric`, `log`), with all of the flattened points of that signal being part of a query space. Virtual fields are added to access data from a higher level before flattening, for `resource`, `library_info`. For metrics, the structure presented for processing is actual data points, e.g. `NumberDataPoint`, `HistogramDataPoint`, with the information from higher levels like `Metric` or the data type available as virtual fields. @@ -142,59 +142,90 @@ allowing the operation to mutate telemetry as needed. ### Examples -These examples contain both a SQL-like declarative language and Python-like imperative language for comparison during -the design phase. The Python-like language currently assumes statements can only be applied to one signal. +These examples contain a SQL-like declarative language. Applied statements interact with only one signal, but statements can be declared across multiple signals. Remove a forbidden attribute such as `http.request.header.authorization` from spans only -`delete(attributes["http.request.header.authorization"]) from traces` -`delete(attributes["http.request.header.authorization"])` +``` +traces: + delete(attributes["http.request.header.authorization"]) +metrics: + delete(attributes["http.request.header.authorization"]) +logs: + delete(attributes["http.request.header.authorization"]) +``` Remove all attributes except for some -`keep_keys(attributes, "http.method", "http.status_code") from metrics` -`keep_keys(attributes, "http.method", "http.status_code")` +``` +traces: + keep_keys(attributes, "http.method", "http.status_code") +metrics: + keep_keys(attributes, "http.method", "http.status_code") +logs: + keep_keys(attributes, "http.method", "http.status_code") +``` Reduce cardinality of an attribute -`replace_match(attributes["http.target"], "/user/*/list/*", "/user/{userId}/list/{listId}") from traces` -`replace_match(attributes["http.target"], "/user/*/list/*", "/user/{userId}/list/{listId}")` +``` +traces: + replace_match(attributes["http.target"], "/user/*/list/*", "/user/{userId}/list/{listId}") +``` Reduce cardinality of a span name -`replace_match(name, "GET /user/*/list/*", "GET /user/{userId}/list/{listId}") from traces` -`replace_match(name, "GET /user/*/list/*", "GET /user/{userId}/list/{listId}")` +``` +traces: + replace_match(name, "GET /user/*/list/*", "GET /user/{userId}/list/{listId}") +``` Reduce cardinality of any matching attribute -`replace_all_matches(attributes, "/user/*/list/*", "/user/{userId}/list/{listId}") from traces` -`replace_all_matches(attributes, "/user/*/list/*", "/user/{userId}/list/{listId}")` +``` +traces: + replace_all_matches(attributes, "/user/*/list/*", "/user/{userId}/list/{listId}") +``` Decrease the size of the telemetry payload by removing large resource attributes -`delete(resource.attributes["process.command_line"]) from traces` -`delete(resource.attributes["process.command_line"])` +``` +traces: + delete(resource.attributes["process.command_line"]) +metrics: + delete(resource.attributes["process.command_line"]) +logs: + delete(resource.attributes["process.command_line"]) +``` Filtering out signals such as by removing all metrics with a `http.target` of `/health` -`drop() where attributes["http.target"] = "/health" from metrics` -`if attributes["http.target"] = "/health": drop()` +``` +metrics: + drop() where attributes["http.target"] = "/health" +``` Attach information from resource into telemetry, for example adding certain resource fields as metric attributes -`set(attributes["k8s_pod"], resource.attributes["k8s.pod.name"]) from metrics` -`attributes["k8s_pod"] = resource.attributes["k8s.pod.name"]` +``` +metrics: + set(attributes["k8s_pod"], resource.attributes["k8s.pod.name"]) +``` Group spans by trace ID -`group_by(trace_id, 2m) from traces` -`group_by(trace_id, 2m)` +``` +traces: + group_by(trace_id, 2m) +``` Create utilization metric from base metrics. Because navigation expressions only operate on a single piece of telemetry, helper functions for reading values from other metrics need to be provided. -`create_gauge("pod.cpu.utilized", read_gauge("pod.cpu.usage") / read_gauge("node.cpu.limit") from metric` -`create_gauge("pod.cpu.utilized", read_gauge("pod.cpu.usage") / read_gauge("node.cpu.limit")` +``` +metrics: + create_gauge("pod.cpu.utilized", read_gauge("pod.cpu.usage") / read_gauge("node.cpu.limit") +``` A lot of processing. Queries are executed in order. While initially performance may degrade compared to more specialized processors, the expectation is that over time, the query processor's engine would improve to be able to apply optimizations @@ -208,15 +239,26 @@ exporters: otlp: processors: - query: + transform: # Assuming group_by is defined in a contrib extension module, not baked into the "query" processor extensions: [group_by] - expressions: - - drop() where attributes["http.target"] = "/health" - - delete(attributes["http.request.header.authorization"]) - - replace_wildcards("/user/*/list/*", "/user/{userId}/list/{listId}", attributes["http.target"]) - - set(attributes["k8s_pod"], resource.attributes["k8s.pod.name"]) from metric - - group_by(trace_id, 2m) from span + traces: + queries: + - drop() where attributes["http.target"] = "/health" + - delete(attributes["http.request.header.authorization"]) + - replace_wildcards("/user/*/list/*", "/user/{userId}/list/{listId}", attributes["http.target"]) + - group_by(trace_id, 2m) + metrics: + queries: + - drop() where attributes["http.target"] = "/health" + - delete(attributes["http.request.header.authorization"]) + - replace_wildcards("/user/*/list/*", "/user/{userId}/list/{listId}", attributes["http.target"]) + - set(attributes["k8s_pod"], resource.attributes["k8s.pod.name"]) + logs: + queries: + - drop() where attributes["http.target"] = "/health" + - delete(attributes["http.request.header.authorization"]) + - replace_wildcards("/user/*/list/*", "/user/{userId}/list/{listId}", attributes["http.target"]) pipelines: - receivers: [otlp] @@ -313,5 +355,4 @@ There are some known issues and limitations that we hope to address while iterat - Handling array-typed attributes - Working on a array of points, rather than a single point - Metric alignment - for example defining an expression on two metrics, that may not be at the same timestamp -- The collector has separate pipelines per signal - while the query language could apply cross-signal, we will need -to remain single-signal for now +- The collector has separate pipelines per signal - while the query language could apply cross-signal, we will need to remain single-signal for now From 53827499af492464774123d9b3f9986612d0cfcb Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Wed, 25 May 2022 11:12:00 -0700 Subject: [PATCH 67/67] [chore] prepare v0.52.0 release (#5417) * [chore] prepare v0.52.0 release * update changelog --- CHANGELOG.md | 14 +++++-- cmd/builder/internal/builder/config.go | 2 +- cmd/otelcorecol/builder-config.yaml | 20 +++++----- cmd/otelcorecol/go.mod | 6 +-- cmd/otelcorecol/main.go | 2 +- examples/k8s/otel-config.yaml | 2 +- go.mod | 4 +- internal/tools/go.sum | 51 -------------------------- versions.yaml | 2 +- 9 files changed, 30 insertions(+), 73 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d086fd51cc5..01fb9b316a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,13 +4,23 @@ ### 🛑 Breaking changes 🛑 +### 🚩 Deprecations 🚩 + +### 💡 Enhancements 💡 + +### 🧰 Bug fixes 🧰 + +## v0.52.0 Beta + +### 🛑 Breaking changes 🛑 + - Remove `configunmarshaler.Unmarshaler` interface, per deprecation comment (#5348) - Remove deprecated pdata funcs/structs from v0.50.0 (#5345) - Remove deprecated pdata getters and setters of primitive slice values: `Value.BytesVal`, `Value.SetBytesVal`, `Value.UpdateBytes`, `Value.InsertBytes`, `Value.UpsertBytes`, `.BucketCounts`, `.SetBucketCounts`, `HistogramDataPoint.ExplicitBounds`, `HistogramDataPoint.SetExplicitBounds` (#5347) -- Remove derecated featuregate funcs/structs from v0.50.0 (#5346) +- Remove deprecated featuregate funcs/structs from v0.50.0 (#5346) - Remove access to deprecated members of the config.Retrieved struct (#5363) - Replace usage of `config.MapConverterFunc` with `config.MapConverter` (#5382) @@ -26,8 +36,6 @@ - Update OTLP to v0.17.0 (#5335) - Add optional min/max fields to histograms (#5399) -### 🧰 Bug fixes 🧰 - ## v0.51.0 Beta ### 🛑 Breaking changes 🛑 diff --git a/cmd/builder/internal/builder/config.go b/cmd/builder/internal/builder/config.go index d57b986452c..0b7b2b8f457 100644 --- a/cmd/builder/internal/builder/config.go +++ b/cmd/builder/internal/builder/config.go @@ -25,7 +25,7 @@ import ( "go.uber.org/zap" ) -const defaultOtelColVersion = "0.51.0" +const defaultOtelColVersion = "0.52.0" // ErrInvalidGoMod indicates an invalid gomod var ErrInvalidGoMod = errors.New("invalid gomod specification for module") diff --git a/cmd/otelcorecol/builder-config.yaml b/cmd/otelcorecol/builder-config.yaml index aaa45f9d1b7..951d819619c 100644 --- a/cmd/otelcorecol/builder-config.yaml +++ b/cmd/otelcorecol/builder-config.yaml @@ -2,29 +2,29 @@ dist: module: go.opentelemetry.io/collector/cmd/otelcorecol name: otelcorecol description: Local OpenTelemetry Collector binary, testing only. - version: 0.51.0-dev - otelcol_version: 0.51.0 + version: 0.52.0-dev + otelcol_version: 0.52.0 receivers: - import: go.opentelemetry.io/collector/receiver/otlpreceiver - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 exporters: - import: go.opentelemetry.io/collector/exporter/loggingexporter - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 - import: go.opentelemetry.io/collector/exporter/otlpexporter - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 - import: go.opentelemetry.io/collector/exporter/otlphttpexporter - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 extensions: - import: go.opentelemetry.io/collector/extension/ballastextension - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 - import: go.opentelemetry.io/collector/extension/zpagesextension - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 processors: - import: go.opentelemetry.io/collector/processor/batchprocessor - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 - import: go.opentelemetry.io/collector/processor/memorylimiterprocessor - gomod: go.opentelemetry.io/collector v0.51.0 + gomod: go.opentelemetry.io/collector v0.52.0 replaces: - go.opentelemetry.io/collector => ../../ diff --git a/cmd/otelcorecol/go.mod b/cmd/otelcorecol/go.mod index 2085d1d013b..34c6b5d609b 100644 --- a/cmd/otelcorecol/go.mod +++ b/cmd/otelcorecol/go.mod @@ -6,7 +6,7 @@ go 1.17 require ( github.com/stretchr/testify v1.7.1 - go.opentelemetry.io/collector v0.51.0 + go.opentelemetry.io/collector v0.52.0 golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27 ) @@ -55,8 +55,8 @@ require ( github.com/tklauser/numcpus v0.4.0 // indirect github.com/yusufpapurcu/wmi v1.2.2 // indirect go.opencensus.io v0.23.0 // indirect - go.opentelemetry.io/collector/pdata v0.51.0 // indirect - go.opentelemetry.io/collector/semconv v0.51.0 // indirect + go.opentelemetry.io/collector/pdata v0.52.0 // indirect + go.opentelemetry.io/collector/semconv v0.52.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 // indirect go.opentelemetry.io/contrib/zpages v0.32.0 // indirect diff --git a/cmd/otelcorecol/main.go b/cmd/otelcorecol/main.go index 4ef143ed0c8..74073683180 100644 --- a/cmd/otelcorecol/main.go +++ b/cmd/otelcorecol/main.go @@ -21,7 +21,7 @@ func main() { info := component.BuildInfo{ Command: "otelcorecol", Description: "Local OpenTelemetry Collector binary, testing only.", - Version: "0.51.0-dev", + Version: "0.52.0-dev", } if err := run(service.CollectorSettings{BuildInfo: info, Factories: factories}); err != nil { diff --git a/examples/k8s/otel-config.yaml b/examples/k8s/otel-config.yaml index 1d78fd5bb0e..94bfee6581f 100644 --- a/examples/k8s/otel-config.yaml +++ b/examples/k8s/otel-config.yaml @@ -177,7 +177,7 @@ spec: - command: - "/otelcol" - "--config=/conf/otel-collector-config.yaml" - image: otel/opentelemetry-collector:0.51.0 + image: otel/opentelemetry-collector:0.52.0 name: otel-collector resources: limits: diff --git a/go.mod b/go.mod index dd6e05720d7..f123f8e5681 100644 --- a/go.mod +++ b/go.mod @@ -20,8 +20,8 @@ require ( github.com/spf13/cobra v1.4.0 github.com/stretchr/testify v1.7.1 go.opencensus.io v0.23.0 - go.opentelemetry.io/collector/pdata v0.51.0 - go.opentelemetry.io/collector/semconv v0.51.0 + go.opentelemetry.io/collector/pdata v0.52.0 + go.opentelemetry.io/collector/semconv v0.52.0 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.32.0 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.32.0 go.opentelemetry.io/contrib/zpages v0.32.0 diff --git a/internal/tools/go.sum b/internal/tools/go.sum index 513ca231d63..7e313828929 100644 --- a/internal/tools/go.sum +++ b/internal/tools/go.sum @@ -31,7 +31,6 @@ cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aD cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= -cloud.google.com/go v0.98.0/go.mod h1:ua6Ush4NALrHk5QXDWnjvZHN93OuF0HfuEPq9I1X0cM= cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= @@ -65,7 +64,6 @@ github.com/Antonboom/errname v0.1.6/go.mod h1:7lz79JAnuoMNDAWE9MeeIr1/c/VpSUWatB github.com/Antonboom/nilnil v0.1.1 h1:PHhrh5ANKFWRBh7TdYmyyq2gyT2lotnvFvvFbylF81Q= github.com/Antonboom/nilnil v0.1.1/go.mod h1:L1jBqoWM7AOeTD+tSquifKSesRHs4ZdaxvZR+xdJEaI= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v0.4.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/toml v1.1.0 h1:ksErzDEI1khOiGPgpwuI7x2ebx/uXQNw7xJpn9Eq1+I= github.com/BurntSushi/toml v1.1.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= @@ -100,8 +98,6 @@ github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRF github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= github.com/alexkohler/prealloc v1.0.0 h1:Hbq0/3fJPQhNkN0dR95AVrr6R7tou91y0uHG5pOcUuw= github.com/alexkohler/prealloc v1.0.0/go.mod h1:VetnK3dIgFBBKmg0YnD9F9x6Icjd+9cvfHR56wJVlKE= -github.com/andybalholm/brotli v1.0.2/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA= github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/antihax/optional v0.0.0-20180407024304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= @@ -233,7 +229,6 @@ github.com/firefart/nonamedreturns v1.0.1 h1:fSvcq6ZpK/uBAgJEGMvzErlzyM4NELLqqdT github.com/firefart/nonamedreturns v1.0.1/go.mod h1:D3dpIBojGGNh5UfElmwPu73SwDCm+VKhHYqwlNOk2uQ= github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= github.com/frankban/quicktest v1.14.2 h1:SPb1KFFmM+ybpEjPUhCCkZOM5xlovT5UbrMvWnXyBns= -github.com/frankban/quicktest v1.14.2/go.mod h1:mgiwOwqx65TmIk1wJ6Q7wvnVMocbUorkibMOrVTHZps= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= @@ -267,7 +262,6 @@ github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9 github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-ole/go-ole v1.2.6/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0= github.com/go-redis/redis v6.15.8+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA= github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= @@ -432,7 +426,6 @@ github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad github.com/gostaticanalysis/analysisutil v0.0.0-20190318220348-4088753ea4d3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.0.3/go.mod h1:eEOZF4jCKGi+aprrirO9e7WKB3beBRtWgqGunKl6pKE= github.com/gostaticanalysis/analysisutil v0.1.0/go.mod h1:dMhHRU9KTiDcuLGdy87/2gTR8WruwYZrKdRq9m1O6uw= -github.com/gostaticanalysis/analysisutil v0.4.1/go.mod h1:18U/DLpRgIUd459wGxVHE0fRgmo1UgHDcbw7F5idXu0= github.com/gostaticanalysis/analysisutil v0.7.1 h1:ZMCjoue3DtDWQ5WyU16YbjbQEQ3VuzwxALrpYd+HeKk= github.com/gostaticanalysis/analysisutil v0.7.1/go.mod h1:v21E3hY37WKMGSnbsw2S/ojApNWb6C1//mXO48CXbVc= github.com/gostaticanalysis/comment v1.3.0/go.mod h1:xMicKDx7XRXYdVwY9f9wQpDJVnqWxw9wCauCMKp+IBI= @@ -445,7 +438,6 @@ github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3 github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= github.com/gostaticanalysis/testutil v0.3.1-0.20210208050101-bfb5c8eec0e4/go.mod h1:D+FIZ+7OahH3ePw/izIEeH5I06eKs1IKI4Xr64/Am3M= github.com/gostaticanalysis/testutil v0.4.0 h1:nhdCmubdmDF6VEatUNjgUZBJKWRqugoISdUv3PPQgHY= -github.com/gostaticanalysis/testutil v0.4.0/go.mod h1:bLIoPefWXrRi/ssLFWX1dx7Repi5x3CuviD3dgAZaBU= github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= @@ -455,7 +447,6 @@ github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.12.1/go.mod h1:8XEsbTttt/W+VvjtQhLACqCisSPWTxCZ7sBRjU6iH9c= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M= github.com/hashicorp/consul/api v1.12.0/go.mod h1:6pVBMo0ebnYdt2S3H87XhekM/HHrUoTD2XXb/VrZVy0= github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms= github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= @@ -489,11 +480,8 @@ github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uG github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.1/go.mod h1:4gW7WsVCke5TE7EPeYliwHlRUyBtfCwuFwuMg2DmyNY= github.com/hashicorp/mdns v1.0.4/go.mod h1:mtBihi+LeNXGtG8L9dX59gAEa12BDtBQSp4v/YAJqrc= -github.com/hashicorp/memberlist v0.2.2/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= github.com/hashicorp/memberlist v0.3.0/go.mod h1:MS2lj3INKhZjWNqd3N0m3J+Jxf3DAOnAH9VT3Sh9MUE= -github.com/hashicorp/serf v0.9.5/go.mod h1:UWDWwZeL5cuWDJdl0C6wrvrUwEqtQ4ZKBKKENpqIUyk= github.com/hashicorp/serf v0.9.6/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hashicorp/serf v0.9.7/go.mod h1:TXZNMjZQijwlDvp+r0b63xZ45H7JmCmgg4gpTwn9UV4= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= @@ -528,7 +516,6 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfC github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= github.com/jonboulle/clockwork v0.2.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= -github.com/josharian/txtarfs v0.0.0-20210218200122-0702f000015a/go.mod h1:izVPOvVRsHiKkeGCT6tYBNWyDVuzj9wAaBb5R9qamfw= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -554,8 +541,6 @@ github.com/kisielk/errcheck v1.6.0 h1:YTDO4pNy7AUN/021p+JGHycQyYNIyMoenM1YDVK6Rl github.com/kisielk/errcheck v1.6.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= -github.com/klauspost/compress v1.13.5/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= @@ -565,7 +550,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -590,7 +574,6 @@ github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lufeee/execinquery v1.2.1 h1:hf0Ems4SHcUGBxpGN7Jz78z1ppVkP/837ZlETPCEtOM= github.com/lufeee/execinquery v1.2.1/go.mod h1:EC7DrEKView09ocscGHC+apXMIaorh4xqSxS/dy8SbM= -github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I= github.com/lyft/protoc-gen-star v0.5.3/go.mod h1:V0xaHgaf5oCCqmcxYcWiDfTiKsZsRc87/1qhoTACD8w= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= @@ -633,7 +616,6 @@ github.com/mbilski/exhaustivestruct v1.2.0/go.mod h1:OeTBVxQWoEmB2J2JCHmXWPJ0aks github.com/mgechev/dots v0.0.0-20210922191527-e955255bf517/go.mod h1:KQ7+USdGKfpPjXk4Ga+5XxQM4Lm4e3gAogrreFAYpOg= github.com/mgechev/revive v1.2.1 h1:GjFml7ZsoR0IrQ2E2YIvWFNS5GPDV7xNwvA5GM1HZC4= github.com/mgechev/revive v1.2.1/go.mod h1:+Ro3wqY4vakcYNtkBWdZC7dBg1xSB6sp054wWwmeFm0= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= github.com/miekg/dns v1.1.26/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso= github.com/miekg/dns v1.1.35/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.41/go.mod h1:p6aan82bvRIyn+zDIv9xYNUpwa73JcSh9BKwknJysuI= @@ -645,7 +627,6 @@ github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0 github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg= github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= @@ -743,7 +724,6 @@ github.com/polyfloyd/go-errorlint v1.0.0 h1:pDrQG0lrh68e602Wfp68BlUTRFoHn8PZYAjL github.com/polyfloyd/go-errorlint v1.0.0/go.mod h1:KZy4xxPJyy88/gldCe5OdW6OQRtNO3EZE7hXzmnebgA= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= -github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso= github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= @@ -782,7 +762,6 @@ github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a h1:sWFav github.com/quasilyte/go-ruleguard v0.3.16-0.20220213074421-6aa060fab41a/go.mod h1:VMX+OnnSw4LicdiEGtRSD/1X8kW7GuEscjYNr4cOIT4= github.com/quasilyte/go-ruleguard/dsl v0.3.0/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/dsl v0.3.16/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= -github.com/quasilyte/go-ruleguard/dsl v0.3.19/go.mod h1:KeCP03KrjuSO0H1kTuZQCWlQPulDV6YMIXmpQss17rU= github.com/quasilyte/go-ruleguard/rules v0.0.0-20201231183845-9e62ed36efe1/go.mod h1:7JTjp89EGyU1d6XfBiXihJNG37wB2VRkd125Q1u7Plc= github.com/quasilyte/go-ruleguard/rules v0.0.0-20211022131956-028d6511ab71/go.mod h1:4cgAphtvu7Ftv7vOT2ZOYhC6CvBxZixcasr8qIOTA50= github.com/quasilyte/gogrep v0.0.0-20220120141003-628d8b3623b5 h1:PDWGei+Rf2bBiuZIbZmM20J2ftEy9IeUCHA8HbQqed8= @@ -791,13 +770,9 @@ github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 h1:L8QM9bvf github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95/go.mod h1:rlzQ04UMyJXu/aOvhd8qT+hvDrFpiwqp8MRXDY9szc0= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 h1:M8mH9eK4OUR4lu7Gd+PU1fV2/qnDNfzT635KRSObncs= github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567/go.mod h1:DWNGW8A4Y+GyBgPuaQJuWiy0XYftx4Xm/y5Jqk9I6VQ= -github.com/remyoudompheng/go-dbus v0.0.0-20121104212943-b7232d34b1d5/go.mod h1:+u151txRmLpwxBmpYn9z3d1sdJdjRPQpsXuYeY9jNls= -github.com/remyoudompheng/go-liblzma v0.0.0-20190506200333-81bf2d431b96/go.mod h1:90HvCY7+oHHUKkbeMCiHt1WuFR2/hPJ9QrljDG+v6ls= -github.com/remyoudompheng/go-misc v0.0.0-20190427085024-2d6ac652a50e/go.mod h1:80FQABjoFzZ2M5uEa6FUaJYEmqU2UOKojlFVak1UAwI= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= @@ -809,7 +784,6 @@ github.com/ryancurrah/gomodguard v1.2.3/go.mod h1:rYbA/4Tg5c54mV1sv4sQTP5WOPBcoL github.com/ryanrolds/sqlclosecheck v0.3.0 h1:AZx+Bixh8zdUBxUA1NxbxVAS78vTPq4rCb8OUZI9xFw= github.com/ryanrolds/sqlclosecheck v0.3.0/go.mod h1:1gREqxyTGR3lVtpngyFo3hZAgk0KCtEdgEkHwDbigdA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/sagikazarmark/crypt v0.3.0/go.mod h1:uD/D+6UF4SrIR1uGEv7bBNkNqLGqUr43MRiaGWX1Nig= github.com/sagikazarmark/crypt v0.4.0/go.mod h1:ALv2SRj7GxYV4HO9elxH9nS6M9gW+xDNxqmyJ6RfDFM= github.com/sagikazarmark/crypt v0.5.0/go.mod h1:l+nzl7KWh51rpzp2h7t4MZWyiEWdhNpOAnclKvg+mdA= github.com/sanposhiho/wastedassign/v2 v2.0.6 h1:+6/hQIHKNJAUixEj6EmOngGIisyeI+T3335lYTyxRoA= @@ -821,7 +795,6 @@ github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c h1:W65qqJCIOVP4jpqPQ0YvHYKwcMEMVWIzWC5iNQQfBTU= github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c/go.mod h1:/PevMnwAxekIXwN8qQyfc5gl2NlkB3CQlkizAbOkeBs= -github.com/shirou/gopsutil/v3 v3.22.4/go.mod h1:D01hZJ4pVHPpCTZ3m3T2+wDF2YAGfd+H4ifUguaQzHM= github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk= github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= @@ -858,7 +831,6 @@ github.com/spf13/cast v1.4.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkU github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.3.0/go.mod h1:BrRVncBjOJa/eUcVVm9CE+oC6as8k+VYr4NY7WCi9V4= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= @@ -870,7 +842,6 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.10.0/go.mod h1:SoyBPwAtKDzypXNDFKN5kzH7ppppbGZtls1UpIy5AsM= github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU= github.com/spf13/viper v1.11.0 h1:7OX/1FS6n7jHD1zGrZTM7WtY13ZELRyosK4k93oPr44= github.com/spf13/viper v1.11.0/go.mod h1:djo0X/bA5+tYVoCn+C7cAYJGcVn/qYLFTG8gdUsX7Zk= @@ -911,8 +882,6 @@ github.com/tetafro/godot v1.4.11 h1:BVoBIqAf/2QdbFmSwAWnaIqDivZdOV0ZRwEm6jivLKw= github.com/tetafro/godot v1.4.11/go.mod h1:LR3CJpxDVGlYOWn3ZZg1PgNZdTUvzsZWu8xaEohUpn8= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144 h1:kl4KhGNsJIbDHS9/4U9yQo1UcPQM0kOMJHn29EoH/Ro= github.com/timakin/bodyclose v0.0.0-20210704033933-f49887972144/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk= -github.com/tklauser/go-sysconf v0.3.10/go.mod h1:C8XykCvCb+Gn0oNCWPIlcb0RuglQTYaQ2hGm7jmxEFk= -github.com/tklauser/numcpus v0.4.0/go.mod h1:1+UI3pD8NW14VMwdgJNJ1ESk2UnwhAnz5hMwiKKqXCQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20200427203606-3cfed13b9966/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= @@ -932,10 +901,6 @@ github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijb github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/uudashr/gocognit v1.0.5 h1:rrSex7oHr3/pPLQ0xoWq108XMU8s678FJcQ+aSfOHa4= github.com/uudashr/gocognit v1.0.5/go.mod h1:wgYz0mitoKOTysqxTDMOUXg+Jb5SvtihkfmugIZYpEA= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasthttp v1.30.0/go.mod h1:2rsYD01CKFrjjsvFxx75KlEUNpWNBY9JWD3K/7o2Cus= -github.com/valyala/quicktemplate v1.7.0/go.mod h1:sqKJnoaOF88V07vkO+9FL8fb9uZg/VPSJnLYn+LmLk8= -github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad h1:W0LEBv82YCGEtcmPA3uNZBI33/qF//HAAs3MawDjRa0= github.com/wadey/gocovmerge v0.0.0-20160331181800-b5bfa59ec0ad/go.mod h1:Hy8o65+MXnS6EwGElrSRjUzQDLXreJlzYLlWiHtt8hM= @@ -958,7 +923,6 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yusufpapurcu/wmi v1.2.2/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= gitlab.com/bosi/decorder v0.2.1 h1:ehqZe8hI4w7O4b1vgsDZw1YU1PE7iJXrQWFMsocbQ1w= gitlab.com/bosi/decorder v0.2.1/go.mod h1:6C/nhLSbF6qZbYD8bRmISBwc6vcWdNsiIBkRvjJFrH0= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= @@ -1002,7 +966,6 @@ go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= golang.org/x/crypto v0.0.0-20180501155221-613d6eafa307/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -1016,7 +979,6 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= -golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= @@ -1069,7 +1031,6 @@ golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2 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-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1116,7 +1077,6 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210614182718-04defd469f4e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -1166,7 +1126,6 @@ golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1215,7 +1174,6 @@ golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1249,7 +1207,6 @@ golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211105183446-c75c47738b0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211205182925-97ca703d548d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211213223007-03aa0b5f6827/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1259,8 +1216,6 @@ golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220403020550-483a9cbc67c0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150 h1:xHms4gcpe1YE7A3yIllJXP16CMAGuqwO2lX1mTyyRRc= golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1289,7 +1244,6 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/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-20190228203856-589c23e65e65/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190307163923-6a08e3108db3/go.mod h1:25r3+/G6/xytQM8iWZKq3Hn0kr0rgFKPUNVEL/dr3z4= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -1361,7 +1315,6 @@ golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82u golang.org/x/tools v0.0.0-20201001104356-43ebab892c4c/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201002184944-ecd9fd270d5d/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.0.0-20201023174141-c8cfbd0f21e6/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201028025901-8cd080b735b3/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= @@ -1423,7 +1376,6 @@ google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqiv google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= google.golang.org/api v0.59.0/go.mod h1:sT2boj7M9YJxZzgeZqXogmhfmRWDtPzT31xkieUbuZU= google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= -google.golang.org/api v0.62.0/go.mod h1:dKmwPCydfsad4qCH08MSdgWjfHOyfpd4VtDGgRFdavw= google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= @@ -1505,8 +1457,6 @@ google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ6 google.golang.org/genproto v0.0.0-20211008145708-270636b82663/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211028162531-8db9c33dc351/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211129164237-f09f9a12af12/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= -google.golang.org/genproto v0.0.0-20211203200212-54befc351ae9/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= @@ -1549,7 +1499,6 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= diff --git a/versions.yaml b/versions.yaml index 1470965a4bf..eeae9e28bdd 100644 --- a/versions.yaml +++ b/versions.yaml @@ -14,7 +14,7 @@ module-sets: collector-core: - version: v0.51.0 + version: v0.52.0 modules: - go.opentelemetry.io/collector - go.opentelemetry.io/collector/cmd/builder