Skip to content

add standard tags for db and redis suggested by OTEL - #8

Merged
ShivamYuvraj merged 3 commits into
masterfrom
otel-standard-tags-db-redis
Mar 3, 2021
Merged

ShivamYuvraj merged 3 commits into
masterfrom
otel-standard-tags-db-redis

Conversation

@asldevi

@asldevi asldevi commented Feb 11, 2021

Copy link
Copy Markdown

add standard tags for db and redis suggested by open telemetry and for better readability of spans from Jaeger/HT
Screenshot 2021-02-11 at 3 14 24 PM
UI.

@asldevi
asldevi requested review from Aka-shi and subintp February 11, 2021 09:45
'db.system' => 'redis',
'db.connection_string' => $connection_str,
'redis.connection' => $connection_str,
'span.kind' => Span::KIND_CLIENT

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we take these tags from constants module or file ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

this is the way the library has been @subintp.

@asldevi
asldevi force-pushed the otel-standard-tags-db-redis branch from 7fa3176 to 9994a45 Compare February 24, 2021 14:54
Devi and others added 2 commits March 2, 2021 13:36
1. remove non standard redis.connection tag, blocking redis to be recognized as backend
2. for mysql dsn without host, take host as an optional param to PDO load
@ShivamYuvraj
ShivamYuvraj merged commit 6f877e8 into master Mar 3, 2021
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.

3 participants