Azure / Azure/azure-functions-powershell-opentelemetry

Start-OpenTelemetryInvocationInternal can be called with empty TraceParent or TraceState - intended?

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Discussion: Should we allow the Start-OpenTelemetryInvocationInternal cmdlet to be called when TraceParent is null or empty?
I do not know what scenario would cause this to happen. The TraceParent comes from the TraceContext in the InvocationRequest inside the worker. I assume it may be null/empty in the case when the host is not instrumented with any kind of telemetry, but in that case, not hooking up a host span would be the correct behavior.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Start-OpenTelemetryInvocationInternal receives TraceParent and TraceState from the TraceContext in the InvocationRequest inside the worker. Determine the expected behavior when either value is null or empty, then verify that behavior with the relevant tests or document the decision if no test location is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.