Skip to content

Add tests for OTEL_DOTNET_AUTO_*_ENABLED_INSTRUMENTATIONS=none #1481

Description

@pellared

Can you please add a test in SmokeTests similar to SubmitLogs that would set OTEL_DOTNET_AUTO_LOGS_ENABLED_INSTRUMENTATIONS=none and assert that none logs are send using collector.AssertEmpty(5.Seconds());?

It would test the OTEL_DOTNET_AUTO_LOGS_ENABLED_INSTRUMENTATIONS env var.

Similar tests should be added for traces and metrics (as a separate PR).

I want to have this smoke test added as part of this PR to have any integration tests verifying the new functionality.

Originally posted by @pellared in #1475 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done/Cut

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions