Are we able to set the OTEL Resource value dynamic...
# fluent-bit
d
Are we able to set the OTEL Resource value dynamically eg. from a field within our log for example setting the
fields.service_name
to
OTEL Resource: service.name
Copy code
Fluentbit Tail: {"event": "my log message", "fields": {"service_name": "my_service", "datacenter": "eu-west"}}
Ideally with the help of a Lua script using the extended metadata support eg;
Copy code
function cb_metadata(tag, timestamp, group, metadata, record)
  ...
  return code, timestamp, metadata, record
end