Describe the bug
When starting up my .NET 5 project, I receive the following error.
LoggerImpl Handler: Error creating native log file.
To Reproduce
Steps to reproduce the behavior:
- Created a brand new .NET 5 Console Application
- Added dockerfile with the following datadog information per the documentation.
RUN curl -LO https://github.com/DataDog/dd-trace-dotnet/releases/download/v1.28.2/datadog-dotnet-apm_1.28.2_amd64.deb
RUN dpkg -i ./datadog-dotnet-apm_1.28.2_amd64.deb
ENV CORECLR_ENABLE_PROFILING=1
ENV CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}
ENV CORECLR_PROFILER_PATH=/opt/datadog/Datadog.Trace.ClrProfiler.Native.so
ENV DD_INTEGRATIONS=/opt/datadog/integrations.json
ENV DD_DOTNET_TRACER_HOME=/opt/datadog
Expected behavior
I expected it to start up without a problem.
Runtime environment (please complete the following information):
- Instrumentation mode: Automatic
- Tracer version: 1.28.2
- OS: Linux
- CLR: .NET 5
Additional context
I'm running this is a linux docker container using the .NET 5 runtime.
FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
Workaround
If I add the trace log path environment variable and set it to the default datadog trace location, it works fine.
Here's a link to a github project with the example.
https://github.com/jrmccannon/datadog-1.28.2-test
Describe the bug
When starting up my .NET 5 project, I receive the following error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected it to start up without a problem.
Runtime environment (please complete the following information):
Additional context
I'm running this is a linux docker container using the .NET 5 runtime.
Workaround
If I add the trace log path environment variable and set it to the default datadog trace location, it works fine.
Here's a link to a github project with the example.
https://github.com/jrmccannon/datadog-1.28.2-test