Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

dotenv for examples #54

wants to merge 4 commits into from

Conversation

kakkun61
Copy link
Collaborator

@kakkun61 kakkun61 commented Mar 1, 2023

Add env vars for examples

.env Outdated
@@ -1 +1,2 @@
PATH="./scripts:$PATH"
# examples
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
Copy link
Collaborator Author

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

@@ -12,6 +12,9 @@ jobs:
- uses: haskell/actions/setup@v2
with:
enable-stack: true
- if: ${{ runner.os == 'Linux' }}
Copy link
Owner

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?

Copy link
Collaborator Author

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
Copy link
Owner

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.

Copy link
Collaborator Author

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_ENDPOINTs additionally?

Does OTEL_EXPORTER_OTLP_ENDPOINT existence make library use otlp protocol?

Copy link
Owner

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okey 0a92377

@@ -1,3 +1,4 @@
use_nix
PATH_add "./scripts"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@kakkun61 kakkun61 self-assigned this Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants