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

How to enable performance tracing on moleculer-sentry? #20

Open
jarrodtoh opened this issue Nov 2, 2021 · 1 comment
Open

How to enable performance tracing on moleculer-sentry? #20

jarrodtoh opened this issue Nov 2, 2021 · 1 comment

Comments

@jarrodtoh
Copy link

Hi, I have tried to configure moleculer-sentry on my moleculer api service. These are what I added so far, but the performance tracing is still not showing on my dashboard.

// Sentry config
dsn: Config.sentry.dsn,
options: {
  environment: env,
  integrations: [
    new Sentry.Integrations.Http({ tracing: true }),
  ],
  tracesSampleRate: 1.0
},

Am I missing something? Also my dashboard is showing that the sdk is outdated. Will there be future update on this plugin? Thank you!

@QQBoxy
Copy link

QQBoxy commented Apr 26, 2023

Tracking is shown on my dashboard, this is my config.

moleculer.config.js

module.exports = {
    // ...
    tracing: {
        enabled: true,
        exporter: [
            "Console"
            {
                type: "Event",
                options: {
                    eventName: "$tracing.spans",
                    sendStartSpan: false,
                    sendFinishSpan: true,
                    broadcast: false,
                    groups: null,
                    interval: 5,
                    spanConverter: null,
                    defaultTags: null
                }
            }
        ]
    },
};

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