Skip to content

Simplify InfluxDB instrumentation#16207

Merged
trask merged 7 commits intoopen-telemetry:mainfrom
trask:simplify-influxdb
Feb 26, 2026
Merged

Simplify InfluxDB instrumentation#16207
trask merged 7 commits intoopen-telemetry:mainfrom
trask:simplify-influxdb

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Feb 17, 2026

@github-actions github-actions Bot added the test native This label can be applied to PRs to trigger them to run native tests label Feb 17, 2026
@trask trask force-pushed the simplify-influxdb branch 5 times, most recently from d592051 to a144e01 Compare February 17, 2026 22:12
In stable semconv, when db.namespace is null the span name falls back
to including server.address:server.port as the target. Update the test
to expect 'WRITE host:port' for stable semconv and 'WRITE' for old semconv.
@trask trask force-pushed the simplify-influxdb branch from a144e01 to a897b2a Compare February 20, 2026 17:58
Comment on lines +417 to +418
span.hasName("WRITE")
span.hasName(
emitStableDatabaseSemconv() ? "WRITE " + host + ":" + port : "WRITE")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good pickup

@trask trask marked this pull request as ready for review February 20, 2026 18:22
@trask trask requested a review from a team as a code owner February 20, 2026 18:22
# Conflicts:
#	instrumentation/influxdb-2.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/influxdb/v2_4/InfluxDbRequest.java
"io.opentelemetry.influxdb-2.4",
DbClientSpanNameExtractor.create(dbAttributesGetter))
.addAttributesExtractor(DbClientAttributesExtractor.create(dbAttributesGetter))
DbClientSpanNameExtractor.createForMigration(dbAttributesGetter))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me createForMigration looks weird. I wish we could just use DbClientSpanNameExtractor.create.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me createForMigration looks weird

yeah, renamed to createWithGenericOldSpanName and improved the javadoc on it

@trask trask enabled auto-merge (squash) February 26, 2026 16:32
@trask trask merged commit 2f66b5c into open-telemetry:main Feb 26, 2026
87 checks passed
@trask trask deleted the simplify-influxdb branch February 26, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants