module Sentry::Utils::TelemetryAttributes
def attribute_hash(value)
def attribute_hash(value) case value when String { value: value, type: "string" } when TrueClass, FalseClass { value: value, type: "boolean" } when Integer { value: value, type: "integer" } when Float { value: value, type: "double" } else begin { value: JSON.generate(value), type: "string" } rescue { value: value, type: "string" } end end end