Skip to content

Fix syntax error in StartActivity sample with links - #56609

Open
SkyDevLab wants to merge 1 commit into
dotnet:mainfrom
SkyDevLab:fix/28903-tracing-links-syntax
Open

SkyDevLab wants to merge 1 commit into
dotnet:mainfrom
SkyDevLab:fix/28903-tracing-links-syntax

Conversation

@SkyDevLab

@SkyDevLab SkyDevLab commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes a syntax error in the distributed tracing StartActivity code sample under the Optional links section. The sample was missing two closing parentheses )) after links: requestContexts.Select(ctx => new ActivityLink(ctx)) to close the s_source.StartActivity(...) call and the using (...) statement.

Fixes #28903


Internal previews

File Preview link
docs/core/diagnostics/distributed-tracing-instrumentation-walkthroughs.md Learn preview

Build report

@dotnetrepoman dotnetrepoman Bot added this to the October 2026 milestone Oct 26, 2026
@dotnet-policy-service dotnet-policy-service Bot added okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Distributed tracing with links has wrong signature

1 participant