-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makes all span/metric/event/resource groups id meaningful #1512
Makes all span/metric/event/resource groups id meaningful #1512
Conversation
3841616
to
9313ca9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving from feature_flag perspective. What is the reason you removed event.yaml
and kept log.yaml
instead of the other way around as it appears in most other semconvs? Is that just to mimic what I did in my other PR?
Thanks @dyladan ! Yes, just to mimic what you've done in the other PR. |
OK. For consistency with other areas of semconv should we use events.yaml instead? Looks like most are using that and the id you used is using the |
General Observation, while I (believe) that I understand the desire to make this change it seems a little redundant to basically have the group Would it not be better to just enforce this via weaver so that the And then we should enforce that any references / extend to the existing So as an example of the change the following would be what was required - id: the.group.id # resulting id becomes span.the.group.id.client
type: span
brief: group brief
extends: span.the.other.group.id.client # You still MUST use the fully qualified group id here
span_kind: client
attributes:
- ref: aws.dynamodb.table_names
- id: the.other.group.id
type: span
span_kind: client
# ... |
Agreed, I'll rename to event.yaml. |
@MSNev I'd prefer to keep things explicit and self-contained in semconv. It'd be surprising to write |
f6619de
to
1d0905a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lmolkova is in danger of being an Rego expert....
I think this is a good directon forward.
1d0905a
to
f0148dd
Compare
Fixes #1324
Part of #1472
In order to provide stability guarantees, we need to make semconv groups identifiable.
We currently have different identifying properties -
name
on event,metric_name
on metric,name
on resource, butsemconv_grouped_metrics
group by root namespace uses group.id instead of metric_name to determine root namespace weaver#289dns.lookup.duration
could be a metric and an attribute)The group
id
is the common identity we can have, but it does not have any meaning now. This PR enforces the following pattern forid
metric.{metric_name}
for metricsevent.{name}
for eventsresource.{name}
for resourcesspan.\.+.{span_kind}
for spans - spans don't have identifying property, so there is nothing to check at the moment. We should be able to change this format if we introduce something better.