feat(service-graphs): add database_name_attributes config to service graph processor #5398
feat(service-graphs): add database_name_attributes config to service graph processor #5398joe-elliott merged 7 commits intografana:mainfrom
Conversation
cd6a816 to
28aa651
Compare
|
This PR has been automatically marked as stale because it has not had any activity in the past 60 days. |
|
Not stale |
| # Enables additional labels for services and virtual nodes. | ||
| [enable_virtual_node_label: <bool> | default = false] | ||
|
|
||
| # list of attribute names used to identify the database name from span attributes. if not set the order is peer.service -> server.address -> network.peer.address -> db.name |
There was a problem hiding this comment.
| # list of attribute names used to identify the database name from span attributes. if not set the order is peer.service -> server.address -> network.peer.address -> db.name | |
| # List of attribute names used to identify the database name from span attributes. If it isn't set, the order is peer.service -> server.address -> network.peer.address -> db.name. |
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
joe-elliott
left a comment
There was a problem hiding this comment.
changelog and we're good merge!
thanks, friend.
| cfg.EnableMessagingSystemLatencyHistogram = false | ||
|
|
||
| cfg.DatabaseNameAttributes = []string{ | ||
| string(semconvnew.DBNamespaceKey), |
There was a problem hiding this comment.
i nearly commented that these are out of order with the previous checks, but these are in fact correct. the previous logic is just awfully convoluted. nice catch
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
|
@joe-elliott added changelog entry, Thanks! |
Signed-off-by: AvivGuiser <avivguiser@gmail.com>
|
Weird, the linter complains about files I didn't touch |
|
Yeah, I've seen this happen before after rebase. Humorously the files that are failing lint have actually been deleted from main. I'm going to drop the lint requirement real quick and merge. |
…graph processor (grafana#5398) * add config and check if config exist and use it first if it exist Signed-off-by: AvivGuiser <avivguiser@gmail.com> * add test and update docs Signed-off-by: AvivGuiser <avivguiser@gmail.com> * update the manifest.md Signed-off-by: AvivGuiser <avivguiser@gmail.com> * cleanup and fix comments Signed-off-by: AvivGuiser <avivguiser@gmail.com> * pass 3 default attributes to database_name_attributes Signed-off-by: AvivGuiser <avivguiser@gmail.com> * add changelog entry Signed-off-by: AvivGuiser <avivguiser@gmail.com> * update manifest.md Signed-off-by: AvivGuiser <avivguiser@gmail.com> --------- Signed-off-by: AvivGuiser <avivguiser@gmail.com>
Signed-off-by: AvivGuiser avivguiser@gmail.com
What this PR does:
this PR introduces a array of database name attributes that the service graph processor looks for, if it finds one of them it uses them for edge node name, this is similiar to the way the service graph processor behaves in the otel collector.
the list is currently empty but if we want we can set the
db.nameas default (like in the collector) but that would require changes to the other testWhich issue(s) this PR fixes:
Fixes #5243
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]