Skip to content

Commit b1d7a8e

Browse files
author
Yang Zeng
committed
MONIT-40444: Pixie script changes for handling raw ebpf data and eBPF sampler
1 parent 5890dd2 commit b1d7a8e

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

operator/hack/autoinstrumentation/cluster-spans.pxl

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -195,29 +195,12 @@ px.export(
195195

196196
# Wavefront Conventions
197197
'service': df.destination_service,
198-
'application': df.destination_namespace,
198+
'application': df.source_namespace,
199+
'from_service': df.source_service,
200+
'from_source': df.source_pod,
199201
# We follow pixie's convention of setting an error tag only for a server span.
200202
'error': df.error,
201203

202-
# OTEL HTTP Conventions
203-
'http.status_code': df.resp_status,
204-
'http.method': df.req_method,
205-
},
206-
),
207-
px.otel.trace.Span(
208-
name=df.req_path,
209-
start_time=df.start_time,
210-
end_time=df.time_,
211-
trace_id=df.trace_id,
212-
span_id=df.parent_span_id,
213-
kind=px.otel.trace.SPAN_KIND_CLIENT,
214-
attributes={
215-
# NOTE: the integration handles splitting of services.
216-
217-
# Wavefront Conventions
218-
'service': df.source_service,
219-
'application': df.source_namespace,
220-
221204
# OTEL HTTP Conventions
222205
'http.status_code': df.resp_status,
223206
'http.method': df.req_method,

operator/hack/autoinstrumentation/egress-spans.pxl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ px.export(
141141
end_time=df.time_,
142142
trace_id=df.trace_id,
143143
span_id=df.span_id,
144+
parent_span_id='external'
144145
kind=px.otel.trace.SPAN_KIND_CLIENT,
145146
attributes={
146147
# NOTE: the integration handles splitting of services.

operator/hack/autoinstrumentation/ingress-spans.pxl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ px.export(
141141
end_time=df.time_,
142142
trace_id=df.trace_id,
143143
span_id=df.span_id,
144+
parent_span_id='external'
144145
kind=px.otel.trace.SPAN_KIND_SERVER,
145146
attributes={
146147
# NOTE: the integration handles splitting of services.

0 commit comments

Comments
 (0)