Skip to content

Commit 17560da

Browse files
updates
1 parent bf4eeb8 commit 17560da

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/splunk_otel/profile.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,11 @@ def mk_log_record(self, stacktraces):
176176
pb_profile = _stacktraces_to_cpu_profile(stacktraces, self.thread_states, self.interval_millis, time_seconds)
177177
pb_profile_str = _pb_profile_to_str(pb_profile)
178178

179-
context = Context(
179+
return LogRecord(
180+
timestamp=int(time_seconds * 1e9),
180181
trace_id=0,
181182
span_id=0,
182183
trace_flags=TraceFlags(0x01),
183-
)
184-
185-
return LogRecord(
186-
timestamp=int(time_seconds * 1e9),
187-
observed_timestamp=int(time_seconds * 1e9),
188-
context=context,
189184
severity_number=SeverityNumber.UNSPECIFIED,
190185
body=pb_profile_str,
191186
attributes={

0 commit comments

Comments
 (0)