-
Notifications
You must be signed in to change notification settings - Fork 888
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
API: record
should take a generic Attachment
class instead of having tracing dependency.
#144
Comments
Pros:
Cons:
|
@bogdandrutu can you say what you're hoping for by decoupling the metrics and trace API? This feels like a lost opportunity to me. At LightStep, we want these to be coupled. Isn't that the point of an integrated diagnostics library? I've been meaning to propose a specification requirement along the lines of "every recorded statistic should be associated with a span context, whether implicit or explicit". This allows an implementation to aggregate metrics by Span always/automatically. I am not familiar with other use-cases for this "attachment" concept. |
@jmacd I meant package dependency not conceptually. What we want is to actually be able to record in the metrics the SpanContext but by doing it like this (not necessary the API like this one): Then have an implementation of the AttachmentValue that encapsulates the SpanContext. This way in the code the metrics package does not depend on the trace package. |
In the new API proposal this is no longer a thing. |
In many places, the term component was used in place of GDI repository.
Original discussion: #137 (comment).
The text was updated successfully, but these errors were encountered: