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

har-to-otel - error _blocked_queueing #92

Closed
eravion opened this issue Jul 29, 2024 · 4 comments
Closed

har-to-otel - error _blocked_queueing #92

eravion opened this issue Jul 29, 2024 · 4 comments
Assignees

Comments

@eravion
Copy link

eravion commented Jul 29, 2024

Hello,

Trying to load .har file to Jaeger with version 0.10.0

docker run   --mount type=bind,source="$(pwd)",target=/files   har-to-otel:latest   -f /files/web.har   -ep http://jaeger:4317   --insecure true
Traceback (most recent call last):
  File "/app/./har-to-otel.py", line 202, in <module>
    ui_time_dev_tools = round(loaded_item['time']) - round(loaded_item['timings']['_blocked_queueing'])
                                                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: '_blocked_queueing'

Same issue with the binary instead of the docker.

./har-to-otel -f web.har -ep http://jaeger:4317   --insecure true
Traceback (most recent call last):
  File "har-to-otel.py", line 202, in <module>
KeyError: '_blocked_queueing'
[3979008] Failed to execute script 'har-to-otel' due to unhandled exception!

Tested on Linux Debian 11.

The har file is ok on http://www.softwareishard.com/har/viewer/

web.har.zip

@eravion
Copy link
Author

eravion commented Jul 29, 2024

Same problem with

Traceback (most recent call last):
File "/app/./har-to-otel.py", line 242, in
span_attributes += f"response._transferSize={loaded_item['response']['_transferSize']} "
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: '_transferSize'

Name of field is not standard?
http://www.softwareishard.com/blog/har-12-spec/

@agardnerIT
Copy link
Owner

Thanks, I'll take a look at this today.

@agardnerIT agardnerIT self-assigned this Jul 29, 2024
@agardnerIT
Copy link
Owner

agardnerIT commented Jul 29, 2024

  1. Tracepusher requires an HTTP(S) endpoint and from your port (4317), it looks like you're trying to use gRPC. That won't work. Please switch to :4318).

I believe this solves it: f6f5204

New binaries in 0.11.0 release: https://github.com/agardnerIT/tracepusher/releases/tag/0.11.0

Properties starting with underscores are optional. It just so happens that every website + HAR I used to develop and test did actually add that field.

Please LMK how you go.

@eravion
Copy link
Author

eravion commented Jul 30, 2024

Hello,

Yes, it is better :)

Thks.

PS: I'll open a new case, I think the date is not well formated

@eravion eravion closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants