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

feat: Addition of ShouldInstrument for instrumenting Nginx master only #1511

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

yodigos
Copy link
Contributor

@yodigos yodigos commented Sep 16, 2024

No description provided.

@yodigos yodigos changed the title feat: Hack for Nginx - need min Pid to find the master feat: Addition of ShouldInstrument for instrumenting Nginx master only Sep 16, 2024
@@ -103,6 +105,10 @@ type EbpfDirector[T OtelEbpfSdk] struct {
client client.Client
}

func (d *EbpfDirector[T]) ShouldInstrument(ctx context.Context, id int, details []process.Details) bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing ctx - not necessary

@@ -44,6 +45,7 @@ type Director interface {
// TODO: once all our implementation move to this function we can rename it to ApplyInstrumentationConfig,
// currently that name is reserved for the old API until it is removed.
ApplyInstrumentationConfiguration(ctx context.Context, workload *workload.PodWorkload, instrumentationConfig *odigosv1.InstrumentationConfig) error
ShouldInstrument(ctx context.Context, id int, details []process.Details) bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

id can mean so many things. better to call it pid

@yodigos yodigos merged commit 5ccf3c2 into odigos-io:main Sep 17, 2024
22 checks passed
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