Skip to content

Add instrumentation for zio http server route#16232

Merged
trask merged 3 commits intoopen-telemetry:mainfrom
laurit:zio-http
Feb 20, 2026
Merged

Add instrumentation for zio http server route#16232
trask merged 3 commits intoopen-telemetry:mainfrom
laurit:zio-http

Conversation

@laurit
Copy link
Copy Markdown
Contributor

@laurit laurit commented Feb 19, 2026

No description provided.

@laurit laurit requested a review from a team as a code owner February 19, 2026 14:23
Copy link
Copy Markdown
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

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

Seems like a nice addition for the scala users! Thanks @laurit .

@Override
public void transform(TypeTransformer transformer) {
transformer.applyAdviceToMethod(
isMethod().and(named("$minus$greater")), getClass().getName() + "$TestAdvice");
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.

😎 cool method name $minus$greater .... <>

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.

in scala the method name is ->

trace.hasSpansSatisfyingExactly(new Consumer[SpanDataAssert] {
override def accept(span: SpanDataAssert): Unit = {
span
.hasName("GET /greet/{name}")
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.

👍🏻

t.isInstanceOf(classOf[String])
}
),
equalTo(HTTP_ROUTE, "/greet/{name}"),
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.

👍🏻

module.set("zio-http_2.12")
versions.set("[$zioVersion,)")
// don't care about these versions
skip("0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5")
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.

These skip version seem so much lower than the actual zio version 3.0.0....I must be missing something.

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.

Due to assertInverse.set(true) muzzle checks all versions. There are no 1.x or 2.x versions only the 0.x and 3.x. At least one of the 0.x versions has missing dependencies.

@trask trask merged commit 3656ecd into open-telemetry:main Feb 20, 2026
85 checks passed
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.

4 participants