-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat(operator)!: Add configuration option for dropping OTLP attributes #15857
Changes from 16 commits
f043e37
c62b991
708f32d
4c7741b
6e1fd39
a1b18d4
4861ff1
61a7d98
69fc46f
6fe2420
d0f4117
a424841
4784d9d
07618ae
ededa50
54029d5
902a0bb
b9c8a33
a217b10
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -837,12 +837,12 @@ type OTLPSpec struct { | |
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Stream Labels" | ||
StreamLabels *OTLPStreamLabelSpec `json:"streamLabels,omitempty"` | ||
|
||
// StructuredMetadata configures which attributes are saved in structured metadata. | ||
// Drop configures which attributes are dropped from the log entry. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we mention here the detail on how the attributes should be in their OTEL formatted name and not Loki? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wondered about how to do that. Let me try adding some text to the |
||
// | ||
// +optional | ||
// +kubebuilder:validation:Optional | ||
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Structured Metadata" | ||
StructuredMetadata *OTLPMetadataSpec `json:"structuredMetadata,omitempty"` | ||
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Dropped Attributes" | ||
Drop *OTLPMetadataSpec `json:"drop,omitempty"` | ||
} | ||
|
||
type OTLPStreamLabelSpec struct { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
DisableRecommendedAttributes
docs have to be updated... and I wonder if it's useful at all 🤔 mainly because we now we know that attributes are attached to structured metadata by default. On the other hand, IIRC stream labels are in added to the index, since some of the labels we have in therecommendedAttributes
have high cardinality maybe it makes sense for this toggle to exist. WDYT?