Skip to content

Trigger trace based on collection rules #3144

Answered by jander-msft
tbajwa2017 asked this question in Q&A
Discussion options

You must be logged in to vote

and I have configured my dotnet app with the following inside the container image:

export DOTNET_DiagnosticPorts="/diag/port.sock,suspend"

You should probably be using ENV to add environment variables to your container image, otherwise I think they are only available at image build time. However, in general, I would not recommend setting this environment variable as part of your container image; it should be set by your deployment mechanism as an environment variable on the container.

I get the following in the logs for the app container:

The runtime has been configured to pause during startup and is awaiting a Diagnostics IPC ResumeStartup command from a Diagnostic Port.

DOTNET_Di…

Replies: 6 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jander-msft
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jander-msft
Comment options

@tbajwa2017
Comment options

Comment options

You must be logged in to vote
1 reply
@tbajwa2017
Comment options

Comment options

You must be logged in to vote
1 reply
@jander-msft
Comment options

Comment options

You must be logged in to vote
2 replies
@jander-msft
Comment options

@tbajwa2017
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants