8000 Manage observability at entrypoint and router level by rtribotte · Pull Request #11308 · traefik/traefik · GitHub
[go: up one dir, main page]

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

Manage observability at entrypoint and router level #11308

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

rtribotte
Copy link
Member

What does this PR do?

This PR introduces options to control observability (access-logs, metrics and tracing) at entrypoint and router level.

Motivation

Fixes #6059
Fixes #10646

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Co-authored-by: Kevin Pollet pollet.kevin@gmail.com

Copy link
Member
@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

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

IMHO, the general Observability section of the documentation should be updated explaining the configuration procedure (global in static conf + default value + granular).
Otherwise, I love it ❤️

Copy link
Contributor
@sdelicata sdelicata left a comment

Choose a reason for hiding this comment

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

LGTM

}

// ShouldAddMetrics returns whether the metrics should be enabled for the given resource.
func (o *ObservabilityMgr) ShouldAddMetrics(resourceName string) bool {
// ShouldAddMetrics returns whether the metrics should be enabled for the given resource and the observability config.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// ShouldAddMetrics returns whether the metrics should be enabled for the given resource and the observability config.
// ShouldAddMetrics returns whether the metrics should be enabled for the given serviceName and the observability config.

Copy link
Member
@mmatur mmatur left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member
@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

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

LGTM

@rtribotte rtribotte force-pushed the per-router-observability branch from 4cdbecf to 9c0b3d1 Compare December 12, 2024 08:42
Copy link
Contributor
@sheddy-traefik sheddy-traefik left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Activate tracing by routers Exclude entrypoint from access log
7 participants
0