-
Notifications
You must be signed in to change notification settings - Fork 889
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
Define the default value for null/empty instrumentation-name #1472
Comments
Good catch! I think we should definitely go for a consistent fallback here. What about As for a |
I also think this should only affect the SDK spec and not be mentioned in the API spec as well as the resulting interface definitions in the implementations. This is not something one should rely on. The API spec should only define what is valid as input for this method and if this is not complied with, it's undefined behavior from an API perspective. The entire sentence
should've been only mentioned in the SDK spec IMHO but we'll have to leave this one in now. |
I would vote for By the way, as commented in #586 (comment), "working default tracer" could be interpreted as no-op tracer so we should maybe clear that up too. |
Trying to re-awake this: I'd vow for going with In any case, assigning this to me to get ourselves moving ;) |
Currently TracerProvider.GetTracer() is defined as:
However, different SIGs have different values, i.e.
unknown
ERROR:MISSING MODULE NAME
I'd suggest we define a SHOULD on this, so at least the default is (more or less) shared. Personally I'd go with
unknown
(although defaulting to "" probably would be helpful if we ever support a defaultTracer
, i.e.TracerProvider.getDefaultTracer()
)The text was updated successfully, but these errors were encountered: