-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
dotenv for examples #54
base: main
Are you sure you want to change the base?
Conversation
.env
Outdated
@@ -1 +1,2 @@ | |||
PATH="./scripts:$PATH" | |||
# examples | |||
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 |
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.
#52 includes config about this service
.github/workflows/haskell.yml
Outdated
@@ -12,6 +12,9 @@ jobs: | |||
- uses: haskell/actions/setup@v2 | |||
with: | |||
enable-stack: true | |||
- if: ${{ runner.os == 'Linux' }} |
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.
Are we able to drop the changes to this file?
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.
actions/runner-images#7061 seems already been solved. Right!
.env
Outdated
@@ -1 +1,2 @@ | |||
PATH="./scripts:$PATH" | |||
# examples | |||
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 |
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.
I'd rather that this .env
file was scoped to the examples that use it. I think in the future we'll want to have examples for exporting to different 3rd party providers like datadog, so we'd need different env var values in those cases.
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.
On such cases, we will have OTEL_EXPORTER_XXX_ENDPOINT
s additionally?
Does OTEL_EXPORTER_OTLP_ENDPOINT
existence make library use otlp protocol?
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.
I think for the different examples, we would generally need different OTEL_EXPORTER_OTLP_ENDPOINT values. I don't think there are other standardized OTEL_EXPORTER_XXX_ENDPOINT
values currently.
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.
Okey 0a92377
.envrc
Outdated
@@ -1,3 +1,4 @@ | |||
use_nix | |||
PATH_add "./scripts" |
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.
Nice!
Add env vars for examples