-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: Adding OTEL_EXPORTER_OTLP_ENDPOINT #189
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1002ac9
adding OTEL_EXPORTER_OTLP_ENDPOINT
zacharyblasczyk aea6a78
fix
zacharyblasczyk 65d6598
merge fix
zacharyblasczyk 1303b9d
revert
zacharyblasczyk 4e5591c
Merge remote-tracking branch 'origin' into traces
zacharyblasczyk 387411d
WIP: traces
zacharyblasczyk 2663568
merge fix
zacharyblasczyk 132a614
making progress
zacharyblasczyk 165c202
missed
zacharyblasczyk c6ffb71
adding in the docker-compose
zacharyblasczyk b9a1069
fix containerized @opentelemetry/auto-instrumentations-node
zacharyblasczyk 062b651
add back in node user
zacharyblasczyk 2490d5b
revert to BatchSpanProcessor
zacharyblasczyk afbc9db
revert simple test
zacharyblasczyk cb16b56
fix
zacharyblasczyk 61f1090
fix pnpm lock
zacharyblasczyk 2223fb7
fix
zacharyblasczyk 083993a
fix
zacharyblasczyk 0abfa3b
cleanup
zacharyblasczyk 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 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 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 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 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 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,5 +1,5 @@ | ||
export async function register() { | ||
// eslint-disable-next-line no-restricted-properties | ||
if (process.env.NEXT_RUNTIME === "nodejs") | ||
await import("./instrumentation.node"); | ||
await import("./instrumentation-node"); | ||
} |
This file contains 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 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,4 +1,4 @@ | ||
version: "3.8" | ||
version: "3.9" | ||
|
||
services: | ||
postgres: | ||
|
@@ -26,52 +26,79 @@ services: | |
|
||
migrations: | ||
platform: linux/amd64 | ||
image: ctrlplane/migrations:c656deb | ||
image: ctrlplane/migrations:75685e0 | ||
container_name: ctrlplane-migrations | ||
restart: "no" | ||
environment: | ||
DATABASE_URL: postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane | ||
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane" | ||
depends_on: | ||
- postgres | ||
|
||
webservice: | ||
platform: linux/amd64 | ||
image: ctrlplane/webservice:c656deb | ||
# platform: linux/amd64 | ||
# image: ctrlplane/webservice:75685e0 | ||
build: | ||
context: . | ||
dockerfile: ./apps/webservice/Dockerfile | ||
|
||
Comment on lines
+40
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just |
||
container_name: ctrlplane-webservice | ||
environment: | ||
BASE_URL: "http://127.0.0.1" # <set your instance url> | ||
AUTH_SECRET: "<auth-secret>" | ||
# AUTH_OIDC_ISSUER: "<oidc-issuer>" | ||
# AUTH_OIDC_CLIENT_ID: "<oidc-client-id>" | ||
# AUTH_OIDC_CLIENT_SECRET: "<oidc-client-secret>" | ||
AUTH_SECRET: ${AUTH_SECRET} | ||
# AUTH_OIDC_ISSUER: ${AUTH_OIDC_ISSUER} | ||
# AUTH_OIDC_CLIENT_ID: ${AUTH_OIDC_CLIENT_ID} | ||
# AUTH_OIDC_CLIENT_SECRET: ${AUTH_OIDC_CLIENT_SECRET} | ||
|
||
AUTH_GOOGLE_CLIENT_ID: ${AUTH_GOOGLE_CLIENT_ID} | ||
AUTH_GOOGLE_CLIENT_SECRET: ${AUTH_GOOGLE_CLIENT_SECRET} | ||
|
||
NEXTAUTH_URL: ${BASE_URL} | ||
DATABASE_URL: postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane | ||
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector:4318" | ||
REDIS_URL: redis://redis:6379 | ||
POSTGRES_URL: postgresql://ctrlplane:ctrlplane@postgres:5432/ctrlplane | ||
VARIABLES_AES_256_KEY: d2506d733ee210078461c08ee8e1605be75ed73b0941d4b513ab7b159c6fbcd9 | ||
depends_on: | ||
zacharyblasczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- postgres | ||
- migrations | ||
ports: | ||
- "8080:8080" | ||
- "3000:3000" | ||
|
||
jobs: | ||
platform: linux/amd64 | ||
image: ctrlplane/jobs:c656deb | ||
image: ctrlplane/jobs:75685e0 | ||
container_name: ctrlplane-jobs | ||
environment: | ||
POSTGRES_URL: postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane | ||
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane" | ||
REDIS_URL: "redis://redis:6379" | ||
VARIABLES_AES_256_KEY: d2506d733ee210078461c08ee8e1605be75ed73b0941d4b513ab7b159c6fbcd9 | ||
depends_on: | ||
- postgres | ||
|
||
event-worker: | ||
platform: linux/amd64 | ||
image: ctrlplane/event-worker:c656deb | ||
image: ctrlplane/event-worker:75685e0 | ||
container_name: ctrlplane-event-worker | ||
environment: | ||
POSTGRES_URL: postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane | ||
POSTGRES_URL: "postgres://ctrlplane:ctrlplane@postgres:5432/ctrlplane" | ||
REDIS_URL: "redis://redis:6379" | ||
VARIABLES_AES_256_KEY: d2506d733ee210078461c08ee8e1605be75ed73b0941d4b513ab7b159c6fbcd9 | ||
depends_on: | ||
- postgres | ||
- redis | ||
|
||
otel-collector: | ||
image: otel/opentelemetry-collector-contrib:latest | ||
container_name: ctrlplane-otel-collector | ||
command: ["--config=/etc/otel-collector-config.yaml"] | ||
volumes: | ||
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml | ||
ports: | ||
- "4317:4317" # OTLP gRPC | ||
- "4318:4318" # OTLP HTTP | ||
- "8125:8125" # StatsD | ||
- "8888:8888" # Telemetry | ||
- "9109:9109" # Prometheus endpoint | ||
|
||
volumes: | ||
zacharyblasczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
postgres_data: | ||
redis_data: |
This file contains 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,80 @@ | ||
connectors: | ||
datadog/connector: {} | ||
exporters: | ||
datadog/exporter: | ||
api: | ||
key: ${DD_API_KEY} | ||
site: ${DD_SITE} | ||
debug: {} | ||
debug/detailed: | ||
verbosity: detailed | ||
prometheus: | ||
endpoint: 0.0.0.0:9109 | ||
zacharyblasczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
extensions: | ||
health_check: {} | ||
processors: | ||
batch: {} | ||
memory_limiter: | ||
check_interval: 5s | ||
limit_percentage: 80 | ||
spike_limit_percentage: 25 | ||
zacharyblasczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
receivers: | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:4317 | ||
include_metadata: true | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
include_metadata: true | ||
statsd: | ||
endpoint: 0.0.0.0:8125 | ||
zacharyblasczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
service: | ||
extensions: | ||
- health_check | ||
pipelines: | ||
logs/datadog: | ||
exporters: | ||
- datadog/exporter | ||
processors: | ||
- batch | ||
- memory_limiter | ||
receivers: | ||
- otlp | ||
metrics/datadog: | ||
exporters: | ||
- datadog/exporter | ||
processors: | ||
- batch | ||
- memory_limiter | ||
receivers: | ||
- otlp | ||
- datadog/connector | ||
traces: | ||
exporters: | ||
- debug | ||
processors: | ||
- batch | ||
- memory_limiter | ||
receivers: | ||
- otlp | ||
traces/datadog: | ||
exporters: | ||
- datadog/connector | ||
- datadog/exporter | ||
processors: | ||
- batch | ||
- memory_limiter | ||
receivers: | ||
- otlp | ||
zacharyblasczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
logs: | ||
exporters: | ||
- debug | ||
processors: | ||
- batch | ||
- memory_limiter | ||
receivers: | ||
- otlp | ||
telemetry: | ||
metrics: | ||
address: 0.0.0.0:8888 | ||
zacharyblasczyk marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains 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 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
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.
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.
@jsbroks this is the fix.