Skip to content

Refine the handling of OpenTelemetry resource attributes #44494

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

Closed
wants to merge 1 commit into from

Conversation

nosan
Copy link
Contributor

@nosan nosan commented Feb 28, 2025

Relates to #44394

Initially, I considered proposing these changes: main...nosan:spring-boot:gh-44394-1.
However, I eventually realized that it might be too much for this specific case.

This PR aims to eliminate duplications in OpenTelemetryAutoConfiguration and OtlpMetricsPropertiesConfigAdapter, consolidating everything into a single location.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 28, 2025
@nosan nosan marked this pull request as draft February 28, 2025 16:09
@nosan nosan changed the title Update OpenTelemetryResourceAttributes to exclude blank keys and trim keys/values Refine the handling of OpenTelemetry resource attributes Feb 28, 2025
@nosan nosan marked this pull request as ready for review February 28, 2025 20:23
@nosan nosan force-pushed the gh-44394 branch 4 times, most recently from 351254a to 2f59144 Compare March 1, 2025 08:55
@nosan nosan marked this pull request as draft March 1, 2025 09:27
Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
@nosan nosan marked this pull request as ready for review March 1, 2025 10:52
@nosan
Copy link
Contributor Author

nosan commented Mar 1, 2025

Another option is to leave things as they are and simply add logic to ignore empty keys.

The attribute key MUST be a non-null and non-empty string.
Case sensitivity of keys is preserved. Keys that differ in casing are treated as distinct
keys.

main...nosan:spring-boot:44394

@mhalbritter mhalbritter added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 3, 2025
@mhalbritter mhalbritter modified the milestones: 3.5.0-M3, 3.5.x Mar 3, 2025
mhalbritter pushed a commit that referenced this pull request Mar 3, 2025
See gh-44494

Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>
@mhalbritter mhalbritter modified the milestones: 3.5.x, 3.5.0-M3 Mar 3, 2025
@mhalbritter
Copy link
Contributor

Thanks @nosan !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants