Add reproduction for OtlpResource issue - #6865
Conversation
🦋 Changeset detectedLatest commit: e728de5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Two reproduction tests for
OtlpResourcebugs: Adds tests for bigint precision loss inunknownToAttributeValueand missing percent-decoding inOTEL_RESOURCE_ATTRIBUTESparsing. Both tests are expected to fail until the underlying implementation is fixed.
DeepSeek Pro (free via Pullfrog for OSS) (Kimi K2 not used — the program covers this model; add its provider key to run your pick) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Percent-decoded
OTEL_RESOURCE_ATTRIBUTES:fromConfignow usesSchema.StringFromUriComponentfor both keys and values, matching the OpenTelemetry spec requirement to decode percent-encoded entries. - Preserved bigint precision in
unknownToAttributeValue: ReplacedNumber(value)withString(value)for bigints, avoiding precision loss for values beyondNumber.MAX_SAFE_INTEGER. TheintValuefield inAnyValueis widened tostring | number | null— the protobuf encoder already handlesBigInt(string)correctly. - Added changeset:
effectpatch describing both fixes.
DeepSeek Pro (free via Pullfrog for OSS) (Kimi K2 not used — the program covers this model; add its provider key to run your pick) | 𝕏
| @@ -0,0 +1,31 @@ | |||
| import { assert, it } from "@effect/vitest" | |||
There was a problem hiding this comment.
Rename this file to OtlpResource.test.ts
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|

Summary
OTEL_RESOURCE_ATTRIBUTES.Covered audit issues
1.
unstable-distributed-otlp-resource-attribute-percent-decoding: Resource environment values are not percent-decodedModule:
OtlpResourceExpected contract: OpenTelemetry resource environment parsing must decode percent-encoded keys and values.
Observed result: PASS
Reproduction command:
2.
unstable-distributed-otlp-resource-bigint-precision: Bigint resource attributes lose precisionModule:
OtlpResourceExpected contract: Accepted bigint attributes mapped to OTLP int64 must preserve their integer value.
Observed result: PASS
Reproduction command:
Closes EFF-304