-
Notifications
You must be signed in to change notification settings - Fork 240
chore: add OTEL support to demos #5
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
afda759
chore: add OTEL support to demos
fiam 46dc1af
refactor: move demo Dockerfiles to /demo to avoid using find
fiam 8e0fff6
fix: remove stray line from gitignore
fiam 16f17bb
Merge remote-tracking branch 'origin/main' into alberto/add-otel-to-d…
fiam 9a45ab0
Merge branch 'main' into alberto/add-otel-to-demos
fiam 18e20bf
Merge remote-tracking branch 'origin/main' into alberto/add-otel-to-d…
fiam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /employees | ||
| /otel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Cosmo demo service | ||
|
|
||
| This directory contains a service used for cosmo demos. | ||
|
|
||
| ## OpenTelemetry | ||
|
|
||
| To configure OpenTelemtry, the following environment variables are available: | ||
|
|
||
| - `OTEL_HTTP_ENDPOINT`: Sets the endpoint for the OTEL collector. If empty, it defaults to `localhost:4318`. | ||
| - `OTEL_AUTH_TOKEN`: Sets the token used to authenticate with the OTEL collector. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,47 @@ | ||
| module github.com/wundergraph/comso/demo/employees | ||
| module github.com/wundergraph/cosmo/demo/employees | ||
|
|
||
| go 1.20 | ||
|
|
||
| replace github.com/wundergraph/cosmo/demo/otel => ../otel | ||
|
|
||
| require ( | ||
| github.com/99designs/gqlgen v0.17.36 | ||
| github.com/vektah/gqlparser/v2 v2.5.8 | ||
| ) | ||
|
|
||
| require ( | ||
| github.com/agnivade/levenshtein v1.1.1 // indirect | ||
| github.com/cenkalti/backoff/v4 v4.2.1 // indirect | ||
| github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect | ||
| github.com/go-logr/logr v1.2.4 // indirect | ||
| github.com/go-logr/stdr v1.2.2 // indirect | ||
| github.com/golang/protobuf v1.5.3 // indirect | ||
| github.com/gorilla/websocket v1.5.0 // indirect | ||
| github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect | ||
| github.com/hashicorp/golang-lru/v2 v2.0.3 // indirect | ||
| github.com/logrusorgru/aurora/v3 v3.0.0 // indirect | ||
| github.com/mattn/go-colorable v0.1.13 // indirect | ||
| github.com/mattn/go-isatty v0.0.19 // indirect | ||
| github.com/mitchellh/mapstructure v1.5.0 // indirect | ||
| github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
| github.com/urfave/cli/v2 v2.25.5 // indirect | ||
| github.com/wundergraph/cosmo/demo/otel v0.0.0-00010101000000-000000000000 // indirect | ||
| github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect | ||
| go.opentelemetry.io/otel v1.16.0 // indirect | ||
| go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect | ||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect | ||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.16.0 // indirect | ||
| go.opentelemetry.io/otel/metric v1.16.0 // indirect | ||
| go.opentelemetry.io/otel/sdk v1.16.0 // indirect | ||
| go.opentelemetry.io/otel/trace v1.16.0 // indirect | ||
| go.opentelemetry.io/proto/otlp v0.19.0 // indirect | ||
| golang.org/x/mod v0.10.0 // indirect | ||
| golang.org/x/net v0.10.0 // indirect | ||
| golang.org/x/sys v0.8.0 // indirect | ||
| golang.org/x/text v0.9.0 // indirect | ||
| golang.org/x/tools v0.9.3 // indirect | ||
| google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect | ||
| google.golang.org/grpc v1.55.0 // indirect | ||
| google.golang.org/protobuf v1.30.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| ) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.