Skip to content

Add new setting to allow renaming service by tag - #975

Merged
tylerbenson merged 2 commits into
masterfrom
tyler/split-by-tag
Sep 5, 2019
Merged

Add new setting to allow renaming service by tag#975
tylerbenson merged 2 commits into
masterfrom
tyler/split-by-tag

Conversation

@tylerbenson

@tylerbenson tylerbenson commented Sep 3, 2019

Copy link
Copy Markdown
Contributor

This is a more generic form of the previous split-by-domain and split-by-instance.

(Note: evaluation is done when a tag is set, so If multiple tags are configured, the last tag set will take precidence.)

For example, this setting can be used to rename aws-sdk spans to be identified with the corresponding aws.service tag:

-Ddd.trace.split-by-tags=aws.service

There are some slight differences with this setting compared with dd.trace.http.client.split-by-domain and dd.trace.db.client.split-by-instance. split-by-tags applies to every span, where split-by-domain and split-by-instance only apply to http and db client spans respectively.

@tylerbenson
tylerbenson requested a review from a team as a code owner September 3, 2019 23:29
This is a more generic form of the previous `split-by-domain` and `split-by-instance`.

(Note: evaluation is done when a tag is set, so If multiple tags are configured, the last tag set will take precidence.)

For example, this setting can be used to rename `aws-sdk` spans to be identified with the corresponding `aws.service` tag:

```
-Ddd.trace.split-by-tags=aws.service
```

There are some slight differences with this setting compared with`dd.trace.http.client.split-by-domain` and `dd.trace.db.client.split-by-instance`.  `split-by-tags` applies to every span, where `split-by-domain` and `split-by-instance` only apply to http and db client spans respectively.

@randomanderson randomanderson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Going through, this is a small change that affected a bunch of files. 👍

@tylerbenson
tylerbenson merged commit df017e0 into master Sep 5, 2019
@tylerbenson
tylerbenson deleted the tyler/split-by-tag branch September 5, 2019 21:24
@tylerbenson tylerbenson added this to the 0.33.0 milestone Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants