Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[exporter/awsxray] make comma as invalid char for x-ray segment name (#…
…32610) X-Ray backend does not support Segment names that include the comma (`,`) character, according to the X-Ray documentation provided below. If users use OTel SDK to create Span names containing a comma, the X-Ray backend will reject these with the error response shown below. It appears that the regex previously implemented did not correctly exclude the comma as an invalid character when converting the span name to an X-Ray segment name. This update adjusts the span name validation regex to align with X-Ray's naming definitions. ``` "name": "MOBSTGSQLAWSV.wvinfo.org,1433", "id": "399a73101ce890de", ErrorCode: "InvalidName" Id: "399a73101ce890de" Message: "Invalid subsegment. ErrorCode: InvalidName, Cause: null } ``` X-Ray public documentation noted that X-Ray Segment name should only contain Unicode letters, numbers, and whitespace, and the following symbols: _, ., :, /, %, &, #, =, +, \, -, @ * https://docs.aws.amazon.com/xray/latest/devguide/xray-api-segmentdocuments.html#api-segmentdocuments-fields
- Loading branch information