Skip to content

Commit

Permalink
add py scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Itoktsnhc committed Sep 6, 2023
1 parent df3627a commit 34bd133
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Stat.Itok.Worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,20 @@ RUN dotnet publish "Stat.Itok.Worker.csproj" -c Release -o /app/publish /p:UseAp
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .

COPY ./_misc /home/
ENV CORECLR_ENABLE_PROFILING=1
ENV CORECLR_PROFILER={BD1A650D-AC5D-4896-B64F-D6FA25D6B26A}
ENV CORECLR_PROFILER_PATH=/home/Pyroscope.Profiler.Native.so
ENV LD_PRELOAD=/home/Pyroscope.Linux.ApiWrapper.x64.so

ENV PYROSCOPE_APPLICATION_NAME=stat.itok.worker
ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/
ENV PYROSCOPE_LOG_LEVEL=debug
ENV PYROSCOPE_PROFILING_ENABLED=1
ENV PYROSCOPE_PROFILING_ALLOCATION_ENABLED=true
ENV PYROSCOPE_PROFILING_CONTENTION_ENABLED=true
ENV PYROSCOPE_PROFILING_EXCEPTION_ENABLED=true


ENTRYPOINT ["dotnet", "Stat.Itok.Worker.dll"]

0 comments on commit 34bd133

Please sign in to comment.