We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b6285 commit ea958bbCopy full SHA for ea958bb
newrelic/api/opentelemetry.py
@@ -210,7 +210,7 @@ def set_attributes(self, attributes):
210
self.set_attribute(key, value)
211
212
def _set_attributes_in_nr(self, otel_attributes=None):
213
- if not (otel_attributes and hasattr(self, "nr_trace") and self.nr_trace):
+ if not (otel_attributes and getattr(self, "nr_trace", False):
214
return
215
for key, value in otel_attributes.items():
216
self.nr_trace.add_custom_attribute(key, value)
0 commit comments