-
Notifications
You must be signed in to change notification settings - Fork 187
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
Support complex attribute values on logs/events in semantic conventions #1669
Comments
Discussed at the spec call on 12/17 Some feedback/notes:
The first step:
Things to figure out:
|
Just to add a use case for where complex attributes on spans would be useful: using the |
Side-thought on flattening rules - they give us an ability to apply attribute limits to individual leaf fields. I.e. {
"foo1": {"key1": "this is a very long value ... ", "key2": {...}}
....
"foo142": {...}
} could be subject to the:
We should also define reasonable limits on depth (so that key does not get too long) If we go down this route, we should consider having additional configuration options for applying limits to complex attributes since |
LogRecord attributes are special - they support complex attribute types unlike spans/metrics/resources that support standard attributes only (primitives and arrays of primitives). Note that the latter is the API limitation (not an OTLP one)
In semconv we assume that all attributes are cross-signal and therefore are limited to 'standard' attribute types.
The proposal is to lift this limitation and allow defining complex attributes in semantic conventions with the following limitations:
geo.location.lat=x
andgeo.location.lon=y
attributes set on a span equivalent togeo.location={"lat": x, "lon": y}
set on the log record?This would help with the following problems:
Related: open-telemetry/opentelemetry-specification#4334, open-telemetry/opentelemetry-specification#2888
The text was updated successfully, but these errors were encountered: