Skip to content

Commit

Permalink
fix: replace LOGFLARE_OPEN_TELEMETRY_SAMPLE_RATIO with LOGFLARE_OTEL_…
Browse files Browse the repository at this point in the history
…SAMPLE_RATIO
  • Loading branch information
Ziinc committed Nov 18, 2024
1 parent 0dba184 commit 54b2a85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .template.env
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ STRIPE_API_KEY=
STRIPE_PUBLISHABLE_KEY=
LOGFLARE_GRPC_PORT=
LOGFLARE_CACHE_STATS=
LOGFLARE_OTEL_ENDPOINT=
LOGFLARE_OTEL_SAMPLE_RATIO=
LOGFLARE_OTEL_SOURCE_UUID=
LOGFLARE_OTEL_ACCESS_TOKEN=
2 changes: 1 addition & 1 deletion config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ if System.get_env("LOGFLARE_OTEL_ENDPOINT") do
{LogflareWeb.OpenTelemetrySampler,
%{
probability:
System.get_env("LOGFLARE_OPEN_TELEMETRY_SAMPLE_RATIO", "0.001")
System.get_env("LOGFLARE_OTEL_SAMPLE_RATIO", "0.001")
|> String.to_float()
}}
}}
Expand Down
4 changes: 2 additions & 2 deletions docs/docs.logflare.com/docs/self-hosting/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ All browser authentication will be disabled when in single-tenant mode.
| `LOGFLARE_OTEL_ENDPOINT` | String, defaults to `nil` | Sets the OpenTelemetry Endpoint to send traces to via gRPC. Port number can be included, such as `https://logflare.app:443` |
| `LOGFLARE_OTEL_SOURCE_UUID` | String, defaults to `nil`, optionally required for OpenTelemetry. | Sets the appropriate header for ingesting OpenTelemetry events into a Logflare source. |
| `LOGFLARE_OTEL_ACCESS_TOKEN` | String, defaults to `nil`, optionally required for OpenTelemetry. | Sets the appropriate authentication header for ingesting OpenTelemetry events into a Logflare source. |
| `LOGFLARE_OPEN_TELEMETRY_SAMPLE_RATIO` | Float, defaults to `0.001`, optionally required for OpenTelemetry. | Sets the sample ratio for server traces. Ingestion and Endpoint routes are dropped and are not included in tracing. |
| `LOGFLARE_OTEL_SAMPLE_RATIO` | Float, defaults to `0.001`, optionally required for OpenTelemetry. | Sets the sample ratio for server traces. Ingestion and Endpoint routes are dropped and are not included in tracing. |

LOGFLARE_OPEN_TELEMETRY_SAMPLE_RATIO
LOGFLARE_OTEL_SAMPLE_RATIO
Additional environment variable configurations for the OpenTelemetry libraries used can be found [here](https://hexdocs.pm/opentelemetry_exporter/readme.html).perf/bq-pipeline-sharding

### BigQuery Backend Configuration
Expand Down

0 comments on commit 54b2a85

Please sign in to comment.