Skip to content

Commit

Permalink
Add resource attrs to console export
Browse files Browse the repository at this point in the history
  • Loading branch information
rdooley committed Mar 12, 2024
1 parent 6e44fe8 commit bdc513a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/opentelemetry/trace/exporter/encoder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ end
--------------------------------------------------------------------------------
function _M.for_console(span)
local ret = "\n---------------------------------------------------------\n"
ret = ret .. util.table_as_string(_M.for_export(span), 2)
local ex = _M.for_export(span)
ex["resource_attributes"] = span.tracer.provider.resource.attrs
ret = ret .. util.table_as_string(ex, 2)
ret = ret .. "---------------------------------------------------------\n"
return ret
end
Expand Down

0 comments on commit bdc513a

Please sign in to comment.