-
Notifications
You must be signed in to change notification settings - Fork 844
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
Refine log fields #3804
Comments
for 4), has the log SIG defined any flags yet? If not, we should probably just leave that out of our SDK until they do. |
On closer inspection, flags is actually trace flags. There's an open spec issue to clarify its purpose. |
oh! Then we should definitely change our model to just accept |
Also to capture, an idea I'm quite fond of is having a https://github.com/open-telemetry/opentelemetry-java/pull/3759/files#r731228356 |
I'm definitely ok with starting with this API, and if someone really needs a direct interface to implement (maybe to support delegation to another logging data model, and hence zero-copy?), then it could easily be added in the future. |
I've included the change of the pattern to |
I believe 2 is resolved now that spec PR #2096 was merged explaining why log body should be structured.
|
Would it make sense to leave the structured version out of the SDK until someone asks for it? It mentions compatibility with certain existing log formats, but perhaps we can wait until we know this actually exists in the Java ecosystem, unless someone already has an example. |
I'd be on board to make it an internal implementation detail until required. Can keep the |
All but one of these items were addressed in #3837. The last unaddressed item is about the log |
A handful of questions have come up regarding log fields. This issue tracks them so we don't forget.
@Nullable
. The other fields have default values. We should have a uniform strategy on this, or good reasons for breaking uniformity.setBody(Body body)
method and simply keepingsetBody(String message)
.name
field.setFlags(int flags)
more usable. PerhapssetFlags(LogFlags)
akin toTraceFlags
?The text was updated successfully, but these errors were encountered: