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

[AzureMonitorDistro] add tests for aspnetcore instrumentation #44827

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

TimothyMothra
Copy link
Contributor

Changes

  • added new project Azure.Monitor.AspNetCoreTestApp.
    This is using the AspNetCore Empty template.
    This project will be used by unit tests to write a WebApplicationFactory-based test.
  • add new test class AspNetCoreInstrumentationTests.
    These tests verify that Request telemetry is created.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

? traceTelemetryItems.Any()
: traceTelemetryItems.Any(predicate);
},
timeout: TimeSpan.FromSeconds(20));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for long time-out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Half the tests failed on the CI because no activity was exported.
I just increased the timeout in the last commit to see if they pass when given extra time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor - Distro Monitor OpenTelemetry Distro
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants