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

fix datadog issues #44

Merged
merged 2 commits into from
Apr 3, 2024
Merged

fix datadog issues #44

merged 2 commits into from
Apr 3, 2024

Conversation

im-adithya
Copy link
Member

  • Updates service name to http-nostr in db tracing
  • Starts tracer using http-nostr service name instead of WithAgentAddr

@im-adithya im-adithya requested a review from bumi April 3, 2024 10:52
@@ -26,9 +25,8 @@ func main() {
echologrus.Logger = svc.Logger
e := echo.New()
if svc.Cfg.DatadogAgentUrl != "" {
tracer.Start(tracer.WithAgentAddr(svc.Cfg.DatadogAgentUrl))
tracer.Start(tracer.WithService("http-nostr"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compare with nwc.getalby.com, in LNDHub we use bun db instead of gorm

if os.Getenv("DATADOG_AGENT_URL") != "" {
sqltrace.Register("pgx", &stdlib.Driver{}, sqltrace.WithServiceName("nostr-wallet-connect"))
if cfg.DatadogAgentUrl != "" {
sqltrace.Register("pgx", &stdlib.Driver{}, sqltrace.WithServiceName("http-nostr"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bumi bumi merged commit ccd55be into main Apr 3, 2024
1 check passed
@bumi bumi deleted the task-dd branch April 3, 2024 11:00
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

Successfully merging this pull request may close these issues.

2 participants