Skip to content

Commit b23bc88

Browse files
committed
Merge branch 'pg-set-app-name' of github.com:mhennoch/semantic-conventions into pg-set-app-name
2 parents f3bed0d + 41ef71c commit b23bc88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/db/postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ and SHOULD be provided **at span creation time** (if provided at all):
175175

176176
Instrumentations MAY propagate context using [`SET application_name`](https://www.postgresql.org/docs/current/runtime-config-logging.html#GUC-APPLICATION-NAME) by injecting fixed-length part of span context (trace-id, span-id, trace-flags, protocol version) before executing a query. For example, when using W3C Trace Context, only a string representation of [`traceparent`](https://www.w3.org/TR/trace-context/#traceparent-header) SHOULD be injected. Context injection SHOULD NOT be enabled by default, but instrumentation MAY allow users to opt into it.
177177

178-
Variable context parts (`tracestate`, `baggage`) SHOULD NOT be injected since `application_name` value length is limited to less than [`NAMEDATALEN`](https://www.postgresql.org/docs/current/runtime-config-preset.html#GUC-MAX-IDENTIFIER-LENGTH) characters (63 characters in a standard build).
178+
Variable context parts (`tracestate`, `baggage`) SHOULD NOT be injected since `application_name` value length (63 characters in a standard build) is limited to less than [`NAMEDATALEN`](https://www.postgresql.org/docs/current/runtime-config-preset.html#GUC-MAX-IDENTIFIER-LENGTH) characters .
179179

180180
Instrumentations that propagate context MUST execute `SET application_name` on the same physical connection as the SQL statement.
181181

0 commit comments

Comments
 (0)