Skip to content
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

Use reflection to get request metadata instead of instrumentation. #2508

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Mar 5, 2021

Similar to what we do in aws sdk v2. For #2502, while we may need to keep some of the special javaagent instrumentation to work around bugs that will not be workaroundable in library instrumentation, the RequestInstrumentation is the one that has the largest impact on library instrumentation right now.

@@ -258,6 +258,7 @@ class Aws1ClientTest extends AgentInstrumentationSpecification {
"aws.endpoint" "https://s3.amazonaws.com"
"aws.operation" "HeadBucket"
"aws.agent" "java-aws-sdk"
"aws.bucket.name" "someBucket"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

And somehow improved coverage!

@anuraaga anuraaga merged commit eff96a2 into open-telemetry:main Mar 8, 2021
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.

3 participants