Skip to content

Open Telemetry Collector doesn't work on Windows #852

@afscrome

Description

@afscrome

Describe the bug

Using the Otel Collector on windows results in the collector entering the "FailedToStart" state. This happens because the dev cert certificate paths end up with invalid characters due to Path.Combine() using windows directory separators rather than unix ones.

Regression

No response

Steps to reproduce

Run the open telemetry sample project on windows.


dotnet run --project .\examples\opentelemetry-collector\CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector.AppHost\

Expected behavior

Open Telemetry Collector should start properly.

Screenshots

No response

IDE and version

VS Code, Other, VS 2022

IDE version

.NET SDK: 9.0.304 f12f5f689e

Nuget packages

latest main (b98f4c2eb41ae7b0a217465e9429820aedca3248)

Additional context

https://discord.com/channels/1361488941836140614/1375617984512528567/1414908067518222369

Help us help you

Yes, I'd like to be assigned to work on this item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions