Skip to content

Commit 48198c7

Browse files
committed
prefix spans with hive
1 parent 11caedc commit 48198c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/migrations/src/clickhouse-actions/015-otel-trace.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ export const action: Action = async exec => {
163163
, "SpanAttributes"['http.url'] AS "http_url"
164164
, "SpanAttributes"['hive.client.name'] AS "client_name"
165165
, "SpanAttributes"['hive.client.version'] AS "client_version"
166-
, "SpanAttributes"['graphql.operation.name'] AS "graphql_operation_name"
166+
, "SpanAttributes"['hive.graphql.operation.name'] AS "graphql_operation_name"
167167
, toLowCardinality("SpanAttributes"['graphql.operation.type']) AS "graphql_operation_type"
168-
, "SpanAttributes"['graphql.operation.document'] AS "graphql_operation_document"
169-
, "SpanAttributes"['graphql.error.count'] AS "graphql_errors_count"
170-
, arrayMap(x -> toLowCardinality(x), splitByChar(',', "SpanAttributes"['graphql.error.codes'])) AS "graphql_error_codes"
168+
, "SpanAttributes"['hive.graphql.operation.document'] AS "graphql_operation_document"
169+
, "SpanAttributes"['hive.graphql.error.count'] AS "graphql_errors_count"
170+
, arrayMap(x -> toLowCardinality(x), splitByChar(',', "SpanAttributes"['hive.graphql.error.codes'])) AS "graphql_error_codes"
171171
, arrayMap(x -> toLowCardinality(x), splitByChar(',', "SpanAttributes"['hive.subgraph.names'])) AS "subgraph_names"
172172
FROM
173173
"otel_traces"

0 commit comments

Comments
 (0)