Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine scripts docs #1360
Refine scripts docs #1360
Changes from 15 commits
ea50ceb
fae7861
80409d2
8f0c8b7
a98541f
e219b0b
45daf6b
ca25de0
8e9a44f
4e00baa
9885ccc
de05af5
8ea968b
c91e2fe
a24073f
6eacb64
f4fef7c
b5e1314
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's about COR_PROFILER_PATH? It is also supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not fully true.
CORECLR_PROFILER_PATH is also working on Windows. See
opentelemetry-dotnet-instrumentation/src/OpenTelemetry.AutoInstrumentation.Native/cor_profiler.cpp
Lines 901 to 922 in d05630f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is but we are recommending using both
CORECLR_PROFILER_PATH_32
andCORECLR_PROFILER_PATH_64
instead. The same recommendation is currently onmain
and the same behavior can be found inenvvars.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We even do not encourage setting it on Windows in
config.md
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of including the
instrument.sh
andinstrument.ps1
to thezip
file (so that they do not have to be additionally downloaded)?Then we could change these 2 lines to
. ./otel-dotnet-auto/instrument.sh
I would rather address it in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After considering loads of different install options, I think instrument.sh is definitely needed and should be in the package.
(since in linux you probably need to configure some service watch, so you can easily add instrument.sh before the real applications wake up call)
Leaves only question about service discovery if custom path was used. Although I don't have currently any real clues for Linux, why you should have custom path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$INSTALL_DIR
$OTEL_DOTNET_AUTO_HOME
-> then one could set it globally. It will be also "unique".After we do it and make a release, we update the script in README.md to take advantage of it. But no sooner than that (we need the package to be published.