You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/app/vendor/bundle/ruby/3.0.0/gems/ddtrace-1.12.1/lib/datadog/tracing/metadata/tagging.rb:114:in `tags': undefined method `merge' for nil:NilClass (NoMethodError)
Expected behaviour
Maybe it should be
def tags
meta.merge(metrics)
end
because meta and metrics are defined in the protected right below this function, which set @meta & @metrics if not already set.
Also, I might be going crazy, but I don't see tags being called anywhere in a way that seems intentional. set_tags at L62 takes a tags argument and uses it, but that seems like pretty much it.
TraceOperation includes the module but I don't see it using tags anywhere that isn't a passed argument to each respective function.
Steps to reproduce
not sure how to provide this because this is just the output of a pretty specific rails console command i'm runing
The text was updated successfully, but these errors were encountered:
@arjitj2 Thank you so much for reporting the issue.
I think your code suggestion is reasonable to me.
By looking at the code, it looks like you might have hit an edge case in which you ask for the tags for a TraceOpertaion or SpanOpertaion before calling any of these methods:
@arjitj2 Thank you so much for reporting the issue.
I think your code suggestion is reasonable to me.
By looking at the code, it looks like you might have hit an edge case in which you ask for the tags for a TraceOpertaion or SpanOpertaion before calling any of these methods:
Current behaviour
This line: https://github.com/DataDog/dd-trace-rb/blob/master/lib/datadog/tracing/metadata/tagging.rb#L114
This error:
Expected behaviour
Maybe it should be
because
meta
andmetrics
are defined in theprotected
right below this function, which set@meta
&@metrics
if not already set.Also, I might be going crazy, but I don't see
tags
being called anywhere in a way that seems intentional.set_tags
at L62 takes atags
argument and uses it, but that seems like pretty much it.TraceOperation
includes the module but I don't see it usingtags
anywhere that isn't a passed argument to each respective function.Steps to reproduce
not sure how to provide this because this is just the output of a pretty specific rails console command i'm runing
The text was updated successfully, but these errors were encountered: