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(tags): http #827
feat(tags): http #827
Conversation
fixing tests, but I figured I'd put it up here for people to review |
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.
Yay, more semantic conventions covered!
...rc/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java
Show resolved
Hide resolved
...rc/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java
Outdated
Show resolved
Hide resolved
agent-bootstrap/src/main/java/io/opentelemetry/auto/typedspan/DelegatingSpan.java
Outdated
Show resolved
Hide resolved
...main/java/io/opentelemetry/auto/instrumentation/netty/v3_8/server/NettyHttpServerTracer.java
Outdated
Show resolved
Hide resolved
...rc/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java
Outdated
Show resolved
Hide resolved
44e5261
to
f4a7fc9
Compare
...rc/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java
Show resolved
Hide resolved
...rc/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java
Outdated
Show resolved
Hide resolved
@trask I think this may be a sporadic test failure, works on my machine and it's a timeout error 🤷 |
flavour, user agent, client ip
7708ca8
to
3eddbad
Compare
return peerHostIP(connection); | ||
} | ||
|
||
private static String extractForwardedFor(String forwarded) { |
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.
Can you add unit test for this method (to mitigate against the extra complexity we asked for 😄)?
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.
added tests, caught an edge case
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.
getting another issue with latestDepTest though.
./gradlew :instrumentation:grpc-1.5:latestDepTest fails
./gradlew :instrumentation:grpc-1.5:test works
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.
Thanks!
...rc/main/java/io/opentelemetry/auto/bootstrap/instrumentation/decorator/HttpServerTracer.java
Show resolved
Hide resolved
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.
Thanks @FrankSpitulski! I'll look into the latestDepTest
issue and let you know once that's resolved in master.
I forgot that I can merge master into your branch 😄 |
flavour, user agent, client ip
I had to make a new type of tracer method that takes both the request and the connection because netty has the flavour on the request while armeria has the flavour on the connection. Also, I needed a fallback for the client ip which relies on the connection.
Closes #776