Module: Fluent::Plugin::Opentelemetry::Response
- Defined in:
- lib/fluent/plugin/opentelemetry/response.rb
Defined Under Namespace
Classes: Logs, Metrics, Traces
Class Method Summary collapse
Class Method Details
.type(content_type) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fluent/plugin/opentelemetry/response.rb', line 11 def self.type(content_type) case content_type when Fluent::Plugin::Opentelemetry::CONTENT_TYPE_PROTOBUF :protobuf when Fluent::Plugin::Opentelemetry::CONTENT_TYPE_JSON :json else raise "unknown content-type: #{content_type}" end end |