In pkgs/google_cloud_shelf/lib/src/constants.dart, cloudTraceContextHeader is explicitly defined as 'traceparent' (W3C trace context header). However, the constant name cloudTraceContextHeader implies legacy X-Cloud-Trace-Context headers.
Since cloudTraceContextHeader is part of the public API exported by google_cloud_shelf.dart, we should:
- Introduce a new constant
traceparentHeader (or w3cTraceparentHeader).
- Deprecate
cloudTraceContextHeader in favor of the new constant.
In
pkgs/google_cloud_shelf/lib/src/constants.dart,cloudTraceContextHeaderis explicitly defined as'traceparent'(W3C trace context header). However, the constant namecloudTraceContextHeaderimplies legacyX-Cloud-Trace-Contextheaders.Since
cloudTraceContextHeaderis part of the public API exported bygoogle_cloud_shelf.dart, we should:traceparentHeader(orw3cTraceparentHeader).cloudTraceContextHeaderin favor of the new constant.