Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry: [error] Export failure [exception] Unprocessable Entity [previous] #1405

Open
cmnemoi opened this issue Oct 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cmnemoi
Copy link

cmnemoi commented Oct 15, 2024

Describe your environment
PHP 8.3.12, open-telemetry/api 1.1.0, open-telemetry/context 1.1.0, open-telemetry/exporter-otlp 1.1.0, open-telemetry/sdk 1.1.0, open-telemetry/sem-conv 1.27.1
PHP runs inside a Docker container

Steps to reproduce
Launching this project on the following branch : https://gitlab.com/eternaltwin/mush/mush/-/tree/internal/otel

What is the expected behavior?
I expect to see OpenTelemetry traces sent through my OLTP endpoint

What is the actual behavior?
I see this error:

mush_php       | NOTICE: PHP message: OpenTelemetry: [error] Export failure [exception] Unprocessable Entity [previous] 
mush_php       | #0 /www/vendor/open-telemetry/exporter-otlp/SpanExporter.php(38): OpenTelemetry\SDK\Common\Export\Http\PsrTransport->send('\n\xEA\x03\n?\n\x17\n\fservic...', NULL)
mush_php       | #1 /www/vendor/open-telemetry/sdk/Trace/SpanProcessor/SimpleSpanProcessor.php(51): OpenTelemetry\Contrib\Otlp\SpanExporter->export(Array)
mush_php       | #2 /www/vendor/open-telemetry/sdk/Trace/SpanProcessor/SimpleSpanProcessor.php(92): OpenTelemetry\SDK\Trace\SpanProcessor\SimpleSpanProcessor->OpenTelemetry\SDK\Trace\SpanProcessor\{closure}()
mush_php       | #3 /www/vendor/open-telemetry/sdk/Trace/SpanProcessor/SimpleSpanProcessor.php(51): OpenTelemetry\SDK\Trace\SpanProcessor\SimpleSpanProcessor->flush(Object(Closure), 'export', false, Object(OpenTelemetry\Context\Context))
mush_php       | #4 /www/vendor/open-telemetry/sdk/Trace/Span.php(259): OpenTelemetry\SDK\Trace\SpanProcessor\SimpleSpanProcessor->onEnd(Object(OpenTelemetry\SDK\Trace\Span))
mush_php       | #5 /www/public/index.php(43): OpenTelemetry\SDK\Trace\Span->end()
mush_php       | #6 {main}

Additional context
Here is some relevant code :

@cmnemoi cmnemoi added the bug Something isn't working label Oct 15, 2024
@brettmc
Copy link
Collaborator

brettmc commented Oct 16, 2024

I think that's a 422 response from the opentelemetry collector (or whichever service you are sending telemetry to). Is anything logged upstream if you dial up the logging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants