I want to integrate SIgnoz with my Fastapi app but...
# support
k
I want to integrate SIgnoz with my Fastapi app but I could not do it, so can any one help me?
s
What did you try? Did you check this out https://signoz.io/blog/opentelemetry-fastapi/?
k
Yes this sample app run. But for my boiler plate I can't run.
s
Is it not running or is not producing the telemetry data? Did you try troubleshooting https://signoz.io/docs/install/troubleshooting/?
k
No I am not trying troubleshooting, I try and msg you.
I tried troubleshooting, and it show 2022-10-06T052222.567Z INFO troubleshoot/main.go:28 STARTING! 2022-10-06T052222.567Z INFO checkEndpoint/checkEndpoint.go:41 checking reachability of SigNoz endpoint 2022-10-06T052222.569Z INFO troubleshoot/main.go:46 Successfully sent sample data to signoz ...
can we have call for this?
s
Troubleshooting on call without much info you side won’t help. Please share what steps you have done. You haven’t yey confirmed it
console
exporter shows the telemetry on stdout
k
okay
Can we have call or huddle for this? Because I share my screen for batter understanding of problem.
s
Before that please try using the console exporter and share if it emit the telemetry to stdout.
k
yes, it gives { "name": "getting username or emails", "context": { "trace_id": "0x11c48a08fcfc606bc84a76077d1977f9", "span_id": "0x8d8629252bb3d5ed", "trace_state": "[]" }, "kind": "SpanKind.INTERNAL", "parent_id": "0xfe4f40d33e9c06e9", "start_time": "2022-10-06T100457.105043Z", "end_time": "2022-10-06T100457.160102Z", "status": { "status_code": "UNSET" }, "attributes": { "contex": "SpanContext(trace_id=0x11c48a08fcfc606bc84a76077d1977f9, span_id=0x8d8629252bb3d5ed, trace_flags=0x01, trace_state=[], is_remote=False)" }, "events": [ { "name": "getting username or emails", "timestamp": "2022-10-06T100457.105085Z", "attributes": {} } ], "links": [], "resource": { "attributes": { "service.name": "auth_signoz_app" }, "schema_url": "" } } { "name": "Creating user", "context": { "trace_id": "0x11c48a08fcfc606bc84a76077d1977f9", "span_id": "0xfe4f40d33e9c06e9", "trace_state": "[]" }, "kind": "SpanKind.INTERNAL", "parent_id": null, "start_time": "2022-10-06T100457.104981Z", "end_time": "2022-10-06T100457.160551Z", "status": { "status_code": "ERROR", "description": "DuplicateEmailOrUsernameOrPhoneException: " }, "attributes": {}, "events": [ { "name": "exception", "timestamp": "2022-10-06T100457.160535Z", "attributes": { "exception.type": "DuplicateEmailOrUsernameOrPhoneException", "exception.message": "", "exception.stacktrace": "Traceback (most recent call last):\n File \"/home/web-h-056/.cache/pypoetry/virtualenvs/yt_stories-vvZydjbs-py3.10/lib/python3.10/site-packages/opentelemetry/trace/__init__.py\", line 575, in use_span\n yield span\n File \"/home/web-h-056/.cache/pypoetry/virtualenvs/yt_stories-vvZydjbs-py3.10/lib/python3.10/site-packages/opentelemetry/sdk/trace/__init__.py\", line 1033, in start_as_current_span\n yield span_context\n File \"/home/web-h-056/Kasimali/Opentelemetry/opentelemetry_signoz/auth-service-signoz/src/app/v1/user/service/user_command.py\", line 50, in create_user\n raise DuplicateEmailOrUsernameOrPhoneException\napp.v1.user.exception.user_exception.DuplicateEmailOrUsernameOrPhoneException\n", "exception.escaped": "False" } } ], "links": [], "resource": { "attributes": { "service.name": "auth_signoz_app" }, "schema_url": "" } }
s
Thanks, so this should show up in the SigNoz UI as well? Are you not seeing this service?
k
no this is not showing in signoz UI
s
The service
auth_signoz_app
is not showing up in UI?
k
yes it is not showing
s
huddle now?
What is the exporter you are using to send the data to SigNoz?
k
yes
console exporter
exporter
s
No, the console won’t send data to SigNoz. Use OTLP exporter.
k
huddle now?