Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] .NET OpenTelemetry SDK 1.9.0 doesn't emit data to AWS X-Ray #2431

Open
mraswinc opened this issue Dec 16, 2024 · 5 comments
Open

[bug] .NET OpenTelemetry SDK 1.9.0 doesn't emit data to AWS X-Ray #2431

mraswinc opened this issue Dec 16, 2024 · 5 comments
Labels
bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member

Comments

@mraswinc
Copy link

mraswinc commented Dec 16, 2024

Package

OpenTelemetry.Api

Package Version

Package Name Version
OpenTelemetry.Api 1.9.0
OpenTelemetry 1.9.0
TBD TBD

Runtime Version

net8.0

Description

I have two .NET Web API projects - one is using 1.9 and another using 1.7. Seems that I couldn't receive telemetry/traces from 1.9 as compared to 1.7.

Steps to Reproduce

  1. Use 1.9 or 1.10 version of the SDK
  2. Instrument the SDK in Startup.cs
services.AddOpenTelemetry()
    .WithTracing(builder => builder
        .SetResourceBuilder(ResourceBuilder.CreateDefault().AddService(this.Configuration["AppSettings:XRayProjectName"]))
        .AddXRayTraceId()
        .AddOtlpExporter()
        .AddAspNetCoreInstrumentation() // 
        .AddHttpClientInstrumentation() // supported too
        .AddSqlClientInstrumentation(options => options.EnableConnectionLevelAttributes = true)); 
 
Sdk.SetDefaultTextMapPropagator(new AWSXRayPropagator());
  1. View X-Ray Traces in AWS Console
  2. No traces could be found.
  3. Downgraded to 1.7
  4. Traces could be seen in AWS Console

Expected Result

X-Ray Traces could be found in AWS Console

Actual Result

Nothing is seen in AWS X-Ray console. However, for project that is using 1.7, the traces can be viewed.

Additional Context

No response

@mraswinc mraswinc added bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member labels Dec 16, 2024
@mraswinc mraswinc changed the title [bug] [bug] .NET OpenTelemetry SDK 1.9.0 doesn't emit data to AWX X-Ray Dec 16, 2024
@mraswinc mraswinc changed the title [bug] .NET OpenTelemetry SDK 1.9.0 doesn't emit data to AWX X-Ray [bug] .NET OpenTelemetry SDK 1.9.0 doesn't emit data to AWS X-Ray Dec 16, 2024
@Kielek
Copy link
Contributor

Kielek commented Dec 16, 2024

@mraswinc, it will be almost impossible to help if you do not provide something more. The best option to start is Minimal, Reproducible Example. It can be separate repository with exact steps to reproduce/code. Putting your application in docker is always good idea (if it is possible).

Application should not contain any non-public, proprietary logic.

@ppittle, you can be interested in this issue.

@mraswinc
Copy link
Author

@mraswinc, it will be almost impossible to help if you do not provide something more. The best option to start is Minimal, Reproducible Example. It can be separate repository with exact steps to reproduce/code. Putting your application in docker is always good idea (if it is possible).

Application should not contain any non-public, proprietary logic.

@ppittle, you can be interested in this issue.

@Kielek - updated my report with code sample

@ppittle
Copy link
Member

ppittle commented Dec 17, 2024

@mraswinc - what version of OpenTelemetry.Extensions.AWS are you using?

@Kielek Kielek transferred this issue from open-telemetry/opentelemetry-dotnet Dec 18, 2024
@mraswinc
Copy link
Author

mraswinc commented Dec 19, 2024

@mraswinc - what version of OpenTelemetry.Extensions.AWS are you using?

I don't think I'm using OpenTelemetry.Extensions.AWS. Here's the packagereference
PackageReference Include="OpenTelemetry.Contrib.Extensions.AWSXRay" Version="1.2.0"
PackageReference Include="OpenTelemetry.Contrib.Instrumentation.AWS" Version="1.0.2"

@ppittle
Copy link
Member

ppittle commented Dec 19, 2024

@mraswinc - could I trouble you to try with the latest beta versions of those packages?

<PackageReference Include="OpenTelemetry.Extensions.AWS" Version="1.10.0-beta.2" />
<PackageReference Include="OpenTelemetry.Instrumentation.AWS" Version="1.10.0-beta.2" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage New issues which have not been classified or triaged by a community member
Projects
None yet
Development

No branches or pull requests

3 participants