open-telemetry / opentelemetry-python

OpenTelemetry Python API and SDK
https://opentelemetry.io
Apache License 2.0
1.66k stars 568 forks source link

Meaningful message when span name is not a string #3955

Open soumyadeepm04 opened 3 weeks ago

soumyadeepm04 commented 3 weeks ago

Description

When the span name is not a string, the error message is confusing. Logs a warning message "span name must be a string" with the stack trace to help identify where the issue is. Converts the span name to a string and continues execution.

Fixes #3918

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Ran the code given in the issue to reproduce the issue.

Does This PR Require a Contrib Repo Change?

Answer the following question based on these examples of changes that would require a Contrib Repo Change:

Checklist: