Skip to content

Error and unable to export logs due to invalid UTF-8 #1903

@wsmoak

Description

@wsmoak

I am seeing this error occasionally despite already aggressively sanitizing output before logging.

I'm using the latest releases of all the gems and haven't been able to intentionally reproduce it.

I assume that one of the log lines has something invalid, is there any way to preserve the rest of them or get any additional information to debug this?

ERROR -- : Result code: 1

OpenTelemetry error: Unable to export 10 log records

OpenTelemetry error: unexpected error in OTLP::Exporter#encode - String is invalid UTF-8 - /path/to/ruby/3.3.0/gems/opentelemetry-exporter-otlp-logs-0.2.0/lib/opentelemetry/exporter/otlp/logs/logs_exporter.rb:329:in `method_missing'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions