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

Assert user agent when it is present #7918

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Feb 27, 2023

No description provided.

@laurit laurit requested a review from a team as a code owner February 27, 2023 19:25
@@ -914,11 +914,17 @@ SpanDataAssert assertClientSpan(
}
if (httpClientAttributes.contains(SemanticAttributes.HTTP_USER_AGENT)) {
String userAgent = options.getUserAgent();
if (userAgent != null) {
if (userAgent != null || attrs.get(SemanticAttributes.HTTP_USER_AGENT) != null) {
Copy link
Member

Choose a reason for hiding this comment

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

👍

@trask trask enabled auto-merge (squash) February 27, 2023 19:28
@trask trask merged commit b937dc4 into open-telemetry:main Feb 27, 2023
@laurit laurit deleted the user-agent branch July 6, 2023 17:48
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.

None yet

2 participants