Skip to content

Conversation

@nickrisaro
Copy link

According to Excon docs is possible to set the HTTP Method with a string but when using excon instrumentation this fails with the following error [2022-03-22T17:31:14.333447 #85108] ERROR -- : OpenTelemetry error: invalid span attribute value type NilClass for key 'http.method' on span 'HTTP '

On this PR we add a test case for the described scenario and a fix to use the string if no symbol was provided.

Fixes #1158

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 22, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: nickrisaro / name: Nick Risaro (50c273f)

@plantfansam
Copy link
Contributor

Thanks so much for the PR @nickrisaro! At first glance, I believe that this should be addressed by @hosamaly's work in #1147, which will create a lookup hash with both string and symbol keys.

@nickrisaro
Copy link
Author

Thanks for the comment @plantfansam! I didn't find that PR yesterday when looking for this. I agree with you, @hosamaly's solution is better than mine.

I'll close this PR in favor of #1147

@nickrisaro nickrisaro closed this Mar 23, 2022
@nickrisaro nickrisaro deleted the excon-contemplate-string-method branch March 23, 2022 14:35
@plantfansam
Copy link
Contributor

Thanks for your contribution @nickrisaro 😄!

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.

It's not possible to track requests made with excon using string as HTTP Method

2 participants