File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
receiver/telemetryapireceiver Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ require (
182
182
go.opentelemetry.io/collector/featuregate v1.12.0 // indirect
183
183
go.opentelemetry.io/collector/internal/globalgates v0.105.0 // indirect
184
184
go.opentelemetry.io/collector/pdata v1.12.0 // indirect
185
- go.opentelemetry.io/collector/semconv v0.105 .0 // indirect
185
+ go.opentelemetry.io/collector/semconv v0.107 .0 // indirect
186
186
go.opentelemetry.io/collector/service v0.105.0 // indirect
187
187
go.opentelemetry.io/contrib/config v0.8.0 // indirect
188
188
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.53.0 // indirect
Original file line number Diff line number Diff line change @@ -872,8 +872,8 @@ go.opentelemetry.io/collector/receiver v0.105.0 h1:eZF97kMUnKJ20Uc4PaDlgLIGmaA8k
872
872
go.opentelemetry.io/collector/receiver v0.105.0 /go.mod h1:nGKDXLUGVHxMBJ5QLfsJ/bIhGvoMGqsN0pZtD5SC8sE =
873
873
go.opentelemetry.io/collector/receiver/otlpreceiver v0.105.0 h1:1qjnvrnDcEaj93WgyrWRWTTAGNODaxi98wNcXiHDwfM =
874
874
go.opentelemetry.io/collector/receiver/otlpreceiver v0.105.0 /go.mod h1:XGs9OAQQFDfVhSzruLcFNdzhTw2kbZZAV68iRE9ecGA =
875
- go.opentelemetry.io/collector/semconv v0.105 .0 h1:8p6dZ3JfxFTjbY38d8xlQGB1TQ3nPUvs+D0RERniZ1g =
876
- go.opentelemetry.io/collector/semconv v0.105 .0 /go.mod h1:yMVUCNoQPZVq/IPfrHrnntZTWsLf5YGZ7qwKulIl5hw =
875
+ go.opentelemetry.io/collector/semconv v0.107 .0 h1:MrrUR4L4tu3IE1JxsxtT/PxjVUqvd6SC9d/dQzk/OxA =
876
+ go.opentelemetry.io/collector/semconv v0.107 .0 /go.mod h1:yMVUCNoQPZVq/IPfrHrnntZTWsLf5YGZ7qwKulIl5hw =
877
877
go.opentelemetry.io/collector/service v0.105.0 h1:93dqJVNKToEvYDYZO2pHrN8f6Uev4+xhzzmw4qwgAzE =
878
878
go.opentelemetry.io/collector/service v0.105.0 /go.mod h1:H0fD5SZjV2AZTgHEjRhObnP8YrhG2etAh9rsWLtmimQ =
879
879
go.opentelemetry.io/contrib/config v0.8.0 h1:OD7aDMhL+2EpzdSHfkDmcdD/uUA+PgKM5faFyF9XFT0 =
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ toolchain go1.21.4
6
6
7
7
require (
8
8
github.com/golang-collections/go-datastructures v0.0.0-20150211160725-59788d5eb259
9
+ github.com/google/uuid v1.6.0
9
10
github.com/stretchr/testify v1.9.0
10
11
go.opentelemetry.io/collector/component v0.105.0
11
12
go.opentelemetry.io/collector/confmap v0.105.0
@@ -24,7 +25,6 @@ require (
24
25
github.com/go-logr/stdr v1.2.2 // indirect
25
26
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
26
27
github.com/gogo/protobuf v1.3.2 // indirect
27
- github.com/google/uuid v1.6.0 // indirect
28
28
github.com/hashicorp/go-version v1.7.0 // indirect
29
29
github.com/json-iterator/go v1.1.12 // indirect
30
30
github.com/knadh/koanf/maps v0.1.1 // indirect
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import (
21
21
"encoding/json"
22
22
"errors"
23
23
"fmt"
24
+ "github.com/google/uuid"
24
25
"go.opentelemetry.io/collector/pdata/pmetric"
25
26
"io"
26
27
"math/rand"
@@ -456,6 +457,7 @@ func newTelemetryAPIReceiver(
456
457
} else {
457
458
r .Attributes ().PutStr (semconv .AttributeServiceName , "unknown_service" )
458
459
}
460
+ r .Attributes ().PutStr (semconv .AttributeServiceInstanceID , uuid .New ().String ())
459
461
if val , ok := os .LookupEnv ("AWS_LAMBDA_FUNCTION_NAME" ); ok {
460
462
r .Attributes ().PutStr (semconv .AttributeFaaSName , val )
461
463
}
You can’t perform that action at this time.
0 commit comments