Skip to content

otel4s: introduce Telemetry - #1355

Merged
mpilquist merged 1 commit into
typelevel:mainfrom
iRevive:topic/otel4s-query-analyzer
Sep 5, 2026
Merged

otel4s: introduce Telemetry#1355
mpilquist merged 1 commit into
typelevel:mainfrom
iRevive:topic/otel4s-query-analyzer

Conversation

@iRevive

@iRevive iRevive commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

This PR is based on #1352.

Key changes


I think we can split this PR into smaller pieces if needed.


Some boilerplate changes were implemented by codex.


config.captureQuery.queryParametersPolicy match {
case QueryCaptureConfig.QueryParametersPolicy.All =>
redactionStrategy.redactArguments(arguments).zipWithIndex.foreach {

@iRevive iRevive Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

First, we redact arguments when we build a query; then we redact them again here.

The same has been happening before my changes.

Any reason to try to redact arguments once?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No, I think when redaction was initially added, there wasn't a great place to do it once

@iRevive
iRevive force-pushed the topic/otel4s-query-analyzer branch from 803bd87 to 7dbbe72 Compare August 31, 2026 11:40
@iRevive
iRevive force-pushed the topic/otel4s-query-analyzer branch from 7dbbe72 to 34bfb51 Compare September 4, 2026 17:00
Comment thread modules/core/shared/src/main/scala/telemetry/Telemetry.scala
@mpilquist

Copy link
Copy Markdown
Member

This looks great! Super excited to land this one.

@mpilquist
mpilquist merged commit 776d662 into typelevel:main Sep 5, 2026
10 checks passed
@iRevive
iRevive deleted the topic/otel4s-query-analyzer branch September 5, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants