Skip to content

Add OTEL semantic conventions tags to HttpClient activity #123936

@JamesNK

Description

@JamesNK

ASP.NET Core has added OTEL semantic convention tags to the hosting activity.

PR: dotnet/aspnetcore#64851
Issue: dotnet/aspnetcore#52439

HttpClient should consider doing the same thing for the http out activity. See conventions here: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#http-client-span

Benefits:

  • Mirrors ASP.NET Core improvements
  • Users of ActivitySourceListener sample callback can use creation tags to make sampling decision
  • Reduce user requirement to use dotnet-opentelemetry-contrib

Metadata

Metadata

Labels

area-System.Net.HttpenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions