diff --git a/Docs/Telemetry/OpenTelemetry/README.md b/Docs/Telemetry/OpenTelemetry/README.md index 058e190586..010f6e7ed4 100644 --- a/Docs/Telemetry/OpenTelemetry/README.md +++ b/Docs/Telemetry/OpenTelemetry/README.md @@ -44,15 +44,15 @@ Once you have configured the telemetry service in your application, you can inte | Environment Variable | Value | | --- | --- | | OTEL_EXPORTER_OTLP_HEADERS | x-oneuptime-service-token= | -| OTEL_EXPORTER_OTLP_ENDPOINT | https://opentelemetry-collector.oneuptime.com | +| OTEL_EXPORTER_OTLP_ENDPOINT | https://otlp.oneuptime.com | **Example** ```bash export OTEL_EXPORTER_OTLP_HEADERS=x-oneuptime-service-token=9c8806e0-a4aa-11ee-be95-010d5967b068 -export OTEL_EXPORTER_OTLP_ENDPOINT=https://opentelemetry-collector.oneuptime.com +export OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.oneuptime.com ``` -If you're self-hosting oneuptime, this can be changed to your self hosted collector endpoint (eg: `http(s):///opentelemetry-collector`) +If you're self-hosting oneuptime, this can be changed to your self hosted collector endpoint (eg: `http(s):///otlp`) Once you run your application, you should see the logs in the OneUptime telemetry service page. Please contact support@oneuptime.com if you need any help. diff --git a/Examples/otel-dotnet/README.md b/Examples/otel-dotnet/README.md index adaf175bf5..8de82532a0 100644 --- a/Examples/otel-dotnet/README.md +++ b/Examples/otel-dotnet/README.md @@ -5,6 +5,6 @@ Please use ```bash -export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-service-token=9c8806e0-a4aa-11ee-be95-010d5967b068" && export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost/OtlpGrpc" && dotnet run --urls=http://localhost:7856/ +export OTEL_EXPORTER_OTLP_HEADERS="x-oneuptime-service-token=9c8806e0-a4aa-11ee-be95-010d5967b068" && export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost" && dotnet run --urls=http://localhost:7856/ ``` diff --git a/Examples/otel-dotnet/obj/staticwebassets.pack.sentinel b/Examples/otel-dotnet/obj/staticwebassets.pack.sentinel index fe825bdd26..4202cba258 100644 --- a/Examples/otel-dotnet/obj/staticwebassets.pack.sentinel +++ b/Examples/otel-dotnet/obj/staticwebassets.pack.sentinel @@ -56,3 +56,5 @@ 2.0 2.0 2.0 +2.0 +2.0 diff --git a/Nginx/default.conf.template b/Nginx/default.conf.template index 1a1a15adc4..2bff16b749 100644 --- a/Nginx/default.conf.template +++ b/Nginx/default.conf.template @@ -76,6 +76,10 @@ server { proxy_pass http://opentelemetry-collector-http; } + location ~ /opentelemetry.proto.collector* { + grpc_pass grpc://opentelemetry-collector-grpc; + } + } # Status Pages