Skip to content

Conversation

mheffner
Copy link
Contributor

@mheffner mheffner commented Nov 1, 2021

This adds an automatic global service tag to metrics and traces set to the service name. This provides automatic correlation of metrics and traces emitted by a service so they can be found in DD.

We only set this if the user hasn't already provided a global service tag.

@mheffner mheffner added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Nov 1, 2021
@mheffner mheffner requested a review from a team as a code owner November 1, 2021 23:18
bytes.Contains(buf, []byte(expectedMsg))
require.True(t, readBytes > 0)

require.True(t, bytes.Equal(buf[0:readBytes], []byte(expectedMsg)))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test wasn't actually comparing anything as the value of bytes.Contains was thrown out. Also, it was truncating the msg read based on the expectedMsg length, so we now read up to 512 bytes.

@mheffner mheffner merged commit fe31619 into master Nov 2, 2021
@mheffner mheffner deleted the chore-service-tier branch November 2, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants