open-telemetry / opentelemetry-python

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

Validate links at span creation #3991

Closed emdneto closed 5 days ago

emdneto commented 1 week ago

Description

Implementing validation of links during span creation as per spec, we shouldn't record invalid links (i.e., links with invalid span context with empty attributes and tracestate) Fixes #3990

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Does This PR Require a Contrib Repo Change?

Checklist: