Skip to content

Commit

Permalink
chore: Remove span_context from LogRecord
Browse files Browse the repository at this point in the history
This code was leftover and should have been removed.
Now, the specfic `trace_id`, `span_id`, and `trace_flags`
attributes are used instead.
  • Loading branch information
kaylareopelle committed May 14, 2024
1 parent 89bf4fc commit 647e0c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions logs_sdk/lib/opentelemetry/sdk/logs/log_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module Logs
class LogRecord < OpenTelemetry::Logs::LogRecord
attr_accessor :timestamp,
:observed_timestamp,
:span_context,
:severity_text,
:severity_number,
:body,
Expand Down Expand Up @@ -64,7 +63,6 @@ def initialize(
)
@timestamp = timestamp
@observed_timestamp = observed_timestamp || timestamp || Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond)
@span_context = span_context
@severity_text = severity_text
@severity_number = severity_number
@body = body
Expand Down

0 comments on commit 647e0c9

Please sign in to comment.