setAttribute abstract method

void setAttribute(
  1. String key,
  2. SentryAttribute value
)

Sets an attribute on this span, replacing any existing attribute with the same key.

Implementation

void setAttribute(String key, SentryAttribute value);