Skip to content

Commit

Permalink
Better toString() (#3140)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Jun 20, 2023
1 parent 67fd0f0 commit 56cf1f0
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,30 @@ public Attributes getAttributes() {
public int getTotalAttributeCount() {
return delegate.getTotalAttributeCount();
}

@Override
public String toString() {
return "SdkLogRecordData{resource="
+ this.getResource()
+ ", instrumentationScopeInfo="
+ this.getInstrumentationScopeInfo()
+ ", timestampEpochNanos="
+ this.getTimestampEpochNanos()
+ ", observedTimestampEpochNanos="
+ this.getObservedTimestampEpochNanos()
+ ", spanContext="
+ this.getSpanContext()
+ ", severity="
+ this.getSeverity()
+ ", severityText="
+ this.getSeverityText()
+ ", body="
+ this.getBody()
+ ", attributes="
+ this.getAttributes()
+ ", totalAttributeCount="
+ this.getTotalAttributeCount()
+ "}";
}
}
}

0 comments on commit 56cf1f0

Please sign in to comment.