-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Labels
api-ready-for-reviewAPI is ready for review, it is NOT ready for implementationAPI is ready for review, it is NOT ready for implementationarea-System.Diagnostics.Activity
Milestone
Description
Background and motivation
Needed to comply with new OpenTelemetry specification requirements released as v1.52.0. It was marked as mandatory under open-telemetry/opentelemetry-specification#4761.
RandomTraceId definition is availab;e on W3C page.
It is also needed for open-telemetry/opentelemetry-dotnet#6768
API Proposal
namespace System.Diagnostics;
[Flags]
public enum ActivityTraceFlags
{
None = 0b_0_0000000,
Recorded = 0b_0_0000001,
+ RandomTraceId = 0b_0_0000010, // 2
}
public partial class Activity : IDisposable
{
+ public bool RandomizedTraceId { get { throw null; } }
}API Usage
N/A
Alternative Designs
No response
Risks
Needed to modify also the way how traceId/flags are created by the Activity class.
Worth to double check if System.Diagnostics.W3CPropagator will be able to handle correctly new flag.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api-ready-for-reviewAPI is ready for review, it is NOT ready for implementationAPI is ready for review, it is NOT ready for implementationarea-System.Diagnostics.Activity