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

Exception while exporting traces: TypeError: 'NoneType' object cannot be interpreted as an integer #3080

Closed
manuel-koch opened this issue Dec 8, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@manuel-koch
Copy link

manuel-koch commented Dec 8, 2022

Describe your environment

Python 3.10.9
opentelemetry-api 1.12.0
opentelemetry-exporter-otlp-proto-http 1.12.0
opentelemetry-propagator-b3 1.12.0
opentelemetry-proto 1.12.0
opentelemetry-sdk 1.12.0
opentelemetry-semantic-conventions 0.33b0
backoff. 2.1.2

K9s cluster, exporting traces from a POD to Grafana/Tempo:
docker.io/grafana/tempo:1.3.2
grafana/agent:v0.28.0

Steps to reproduce
The following error is logged on console when the service in the POD tries to export traces:

Python logger is opentelemetry.exporter.otlp.proto.http.trace_exporter and opentelemetry.sdk.trace.export

Transient error Internal Server Error encountered while exporting span batch, retrying in Nones.

Exception while exporting Span batch.
Traceback (most recent call last):
  File \"/usr/local/lib/python3.10/site-packages/opentelemetry/sdk/trace/export/__init__.py\", line 367, in _export_batch
self.span_exporter.export(self.spans_list[:idx])  # type: ignore
  File \"/usr/local/lib/python3.10/site-packages/opentelemetry/exporter/otlp/proto/http/trace_exporter/__init__.py\", line 150, in export
sleep(delay)
TypeError: 'NoneType' object cannot be interpreted as an integer

Likely related to the backoff stuff from


and

What is the expected behavior?

Exporting traces succesfully.

What is the actual behavior?

Opentelemetry functionality causes exception and no traces are exported.

@manuel-koch manuel-koch added the bug Something isn't working label Dec 8, 2022
@manuel-koch
Copy link
Author

I guess this is fixed with #2980 which seems to be included in Version 1.14.0/0.35b0

@srikanthccv
Copy link
Member

I guess this is fixed with #2980 which seems to be included in Version 1.14.0/0.35b0

Yes, this is fixed and released already. Please upgrade and re-open if the issue persists.

@srikanthccv srikanthccv closed this as not planned Won't fix, can't repro, duplicate, stale Dec 9, 2022
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