File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1239,6 +1239,7 @@ func TestSupervisorAgentDescriptionConfigApplies(t *testing.T) {
12391239 stringKeyValue ("client.id" , "my-client-id" ),
12401240 stringKeyValue ("service.name" , command ),
12411241 stringKeyValue ("service.version" , version ),
1242+ stringKeyValue ("service.instance.id" , uuid .UUID (ad .InstanceUid ).String ()),
12421243 },
12431244 NonIdentifyingAttributes : []* protobufs.KeyValue {
12441245 stringKeyValue ("env" , "prod" ),
Original file line number Diff line number Diff line change @@ -1156,7 +1156,9 @@ func (s *Supervisor) composeOwnTelemetryConfig() []byte {
11561156
11571157func (s * Supervisor ) composeExtraTelemetryConfig () []byte {
11581158 var cfg bytes.Buffer
1159- resourceAttrs := map [string ]string {}
1159+ resourceAttrs := map [string ]string {
1160+ "service.instance.id" : s .persistentState .InstanceID .String (),
1161+ }
11601162 ad := s .agentDescription .Load ().(* protobufs.AgentDescription )
11611163 for _ , attr := range ad .IdentifyingAttributes {
11621164 resourceAttrs [attr .Key ] = attr .Value .GetStringValue ()
You can’t perform that action at this time.
0 commit comments