mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3364] tracing/logging on self hosted #1123
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mcmluk-monster on GitHub (Sep 18, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3364
Is there an existing issue for this?
Current behavior
I have setup a self hosted hoppscotch using the docker images currently (specifically the aio image). I've noticed if I use the public hoppscotch, there is logging that can be seen in the console. However, in my self-hosted setup I'm getting an undefined env variable as seen below:
Do I need to self host sentry and set that ENV, or will I need to build my own docker images? Or is there some other way I can enable logging?
Thanks for any help you can provide
Steps to reproduce
See description
Environment
Production
Version
Self-hosted
@wirbe1 commented on GitHub (Sep 18, 2023):
You have to build your own images with correct env variables set for your docker environment in case of frontend images, however you can just set env variables for execution environment for backend image
@AndrewBastin commented on GitHub (Sep 21, 2023):
@mcmluk-monster Sentry tracing was an overlooked bit and should be moved out to individual platforms instead of the Hoppscotch Common Code (which is shared between Selfhost and hoppscotch.io) as its usage is currently hoppscotch.io specific.
Is there a requirement on your end for tracing/logging on SH ? Else our plan of action is to move the Sentry code out of the Common code into the hoppscotch.io platform.
@radekpribyl commented on GitHub (Sep 21, 2023):
@AndrewBastin the intention is to have logging in place for the request / response processing. Not necessarily the Sentry piece. Especially when the request includes variables then it's handy to see how the final request looks like. Something similar to what is logged to the console at https://hoppscotch.io/ but not in the self-hosted version (see the screenshot below)
@liyasthomas commented on GitHub (Sep 27, 2023):
Hi @radekpribyl, let me know if this comment helps you to view the entire final request object: https://github.com/hoppscotch/hoppscotch/issues/2651#issuecomment-1557056572.
We have a feature that allows you to "Generate code snippets" for various programming languages and frameworks:
This displays the current request setup in HTTP 1.1 Request String syntax. Let us know if this suits your use case.