Skip to content

Commit d48239c

Browse files
committed
linter pass
1 parent 8962ef8 commit d48239c

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

content/docs/reference/tracing.mdx

+10-10
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import TabItem from '@theme/TabItem';
1616

1717
## Summary
1818

19-
Pomerium has comprehensive support for OpenTelemetry tracing, allowing detailed introspection into requests and authorization flows.
20-
You can use tracing to debug errors and latency issues in your applications.
19+
Pomerium has comprehensive support for OpenTelemetry tracing, allowing detailed introspection into requests and authorization flows. You can use tracing to debug errors and latency issues in your applications.
2120

2221
## Configuration
2322

@@ -27,13 +26,14 @@ You can use tracing to debug errors and latency issues in your applications.
2726
### Environment Variables
2827

2928
The recommended way to configure tracing is by using the standard OpenTelemetry environment variables:
29+
3030
- [SDK environment variables](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#general-sdk-configuration)
3131
- [OTLP exporter environment variables](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/)
3232

3333
The main variables used to configure tracing in Pomerium are the following:
3434

3535
| Name | Description | Default |
36-
| :--- | :---------- | :------ |
36+
| :-- | :-- | :-- |
3737
| [`OTEL_TRACES_EXPORTER`](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#exporter-selection) | Trace exporter to be used. <br/> Valid values are `"otlp"` or `"none"` | `"none"` |
3838
| [`OTEL_EXPORTER_OTLP_ENDPOINT`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_endpoint) or <br/> [`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_traces_endpoint) | See [Endpoint Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#endpoint-configuration). |
3939
| [`OTEL_EXPORTER_OTLP_PROTOCOL`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_protocol) or <br/> [`OTEL_EXPORTER_OTLP_TRACES_PROTOCOL`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_traces_protocol) | See [Protocol Configuration](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#protocol-configuration). <br/> Valid values are `"grpc"` or `"http/protobuf"`. <br/>If unset, Pomerium will attempt to determine the protocol based on the endpoint port number (the standard ports are 4317 for GRPC, 4318 for HTTP), otherwise it will default to `"http/protobuf"`. | (auto) |
@@ -44,7 +44,7 @@ The main variables used to configure tracing in Pomerium are the following:
4444
Tracing can also be configured using the Pomerium config file if desired:
4545

4646
| Config Key | Equivalent Environment Variable |
47-
| :--- | :---------- |
47+
| :-- | :-- |
4848
| `tracing_provider` | [`OTEL_TRACES_EXPORTER`](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#exporter-selection) |
4949
| `tracing_otlp_endpoint` | [`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_traces_endpoint) |
5050
| `tracing_otlp_protocol` | [`OTEL_EXPORTER_OTLP_TRACES_PROTOCOL`](https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_traces_protocol) |
@@ -62,6 +62,7 @@ Tracing can also be configured using the Pomerium config file if desired:
6262
4. Optionally, enter a protocol ("grpc" or "http/protobuf"). If the endpoint uses port 4317 or 4318, the protocol will be selected automatically. Port 4317 is the standard for OTLP GRPC, and 4318 for OTLP HTTP.
6363

6464
![Enterprise tracing config](./img/tracing/tracing-otlp.png)
65+
6566
</TabItem>
6667
</Tabs>
6768

@@ -82,6 +83,7 @@ $ docker run -d --name jaeger \
8283
```
8384

8485
2. Run Pomerium with OpenTelemetry environment variables set:
86+
8587
```bash
8688
$ OTEL_TRACES_EXPORTER=otlp OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 pomerium --config path/to/your/config.yaml`
8789
```
@@ -92,14 +94,11 @@ $ OTEL_TRACES_EXPORTER=otlp OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 po
9294

9395
### Tracing errors
9496

95-
A typo in the OAuth2 issuer URL configuration is a common mistake that can lead to unexpected errors.
96-
A user attempting to navigate to a Pomerium route that requires authentication might see an error page instead of being redirected to the Identity Provider.
97-
In the Jaeger UI, traces that contain errors are highlighted and easy to find:
97+
A typo in the OAuth2 issuer URL configuration is a common mistake that can lead to unexpected errors. A user attempting to navigate to a Pomerium route that requires authentication might see an error page instead of being redirected to the Identity Provider. In the Jaeger UI, traces that contain errors are highlighted and easy to find:
9898

9999
![Jaeger trace list](./img/tracing/jaeger-trace-list-err.png)
100100

101-
Clicking on this trace will show us the original unauthenticated request (`GET https://verify.localhost.pomerium.io/`) and that it was redirected to sign in.
102-
When attempting to initiate the auth flow, an error was encountered, which was recorded in the trace:
101+
Clicking on this trace will show us the original unauthenticated request (`GET https://verify.localhost.pomerium.io/`) and that it was redirected to sign in. When attempting to initiate the auth flow, an error was encountered, which was recorded in the trace:
103102

104103
![Jaeger error trace](./img/tracing/error-flow.png)
105104

@@ -118,6 +117,7 @@ The [Securing Grafana with Pomerium](../guides/grafana.mdx) guide can help you g
118117
To enable OpenTelemetry traces in Grafana, set the environment variable `GF_TRACING_OPENTELEMETRY_OTLP_ADDRESS` to the same ip:port (without scheme) as the OTLP endpoint configured in Pomerium.
119118

120119
Alternatively, this can be set in the Grafana config file:
120+
121121
```ini
122122
# grafana.ini
123123
[tracing.opentelemetry.otlp]
@@ -130,7 +130,7 @@ With tracing enabled in both Pomerium and Grafana, navigate to your Grafana rout
130130

131131
![Grafana traces in Jaeger](./img/tracing/grafana-trace-list.png)
132132

133-
The bottom trace (occured first) is the initial unauthenticated request to Pomerium. The top trace is the authenticated request, after the user signed in and was redirected. This trace includes spans exported by Grafana itself, which we can see in detail:
133+
The bottom trace (occurred first) is the initial unauthenticated request to Pomerium. The top trace is the authenticated request, after the user signed in and was redirected. This trace includes spans exported by Grafana itself, which we can see in detail:
134134

135135
![Grafana trace details](./img/tracing/grafana-trace.png)
136136

cspell.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"pomerium",
124124
"posix",
125125
"proto",
126+
"protobuf",
126127
"proxied",
127128
"proxying",
128129
"psql",
@@ -201,4 +202,4 @@
201202
"package.json",
202203
"sidebars.js"
203204
]
204-
}
205+
}

0 commit comments

Comments
 (0)