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(active-job): Honour dynamic changes in configuration #1079

Merged

Conversation

lavoiesl
Copy link
Contributor

@lavoiesl lavoiesl commented Jul 22, 2024

Fixes #1077 as introduced at #677 (comment)

Added a unit test for good measure.


private

def span_name(job)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it'd be best to move this to the Default class and also change all the other spans to have a consistent naming, but I'm not sure if we want to lump this change in the PR, this was merely intended to fix a regression

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Separate PR to do just that: #1080

@lavoiesl lavoiesl force-pushed the seb-active_job-dynamic-config branch from cb914fd to 0aa2203 Compare July 22, 2024 14:49
@lavoiesl lavoiesl changed the title [ActiveJob] Honour dynamic changes in configuration fix(active_job): Honour dynamic changes in configuration Jul 22, 2024
@lavoiesl lavoiesl force-pushed the seb-active_job-dynamic-config branch 2 times, most recently from cb76703 to 0f12299 Compare July 22, 2024 15:49
@lavoiesl
Copy link
Contributor Author

I don't understand the commit validation error:

  ❌ PullRequest: fix(active_job): Honour dynamic changes in configuration
  Error: PullRequest:1:4: error: A scope MAY be provided after a type. A scope MUST consist of a noun describing a section of the codebase surrounded by parenthesis, e.g., fix(parser):
  
    1 | fix(active_job): Honour dynamic changes in configuration
      |    ~~~~~~~~~~~~

It sounds like fix(active_job): should fit the bill 🤔

@kaylareopelle
Copy link
Contributor

kaylareopelle commented Jul 22, 2024

I don't understand the commit validation error:

  ❌ PullRequest: fix(active_job): Honour dynamic changes in configuration
  Error: PullRequest:1:4: error: A scope MAY be provided after a type. A scope MUST consist of a noun describing a section of the codebase surrounded by parenthesis, e.g., fix(parser):
  
    1 | fix(active_job): Honour dynamic changes in configuration
      |    ~~~~~~~~~~~~

It sounds like fix(active_job): should fit the bill 🤔

@lavoiesl - I wonder if the underscore is the problem. Could you update to a hyphen?

@lavoiesl lavoiesl force-pushed the seb-active_job-dynamic-config branch from 0f12299 to 432007d Compare July 22, 2024 17:27
@arielvalentin
Copy link
Collaborator

The tooling does support library scopes. Remove the scope (active-job) and it will pass.

@lavoiesl lavoiesl force-pushed the seb-active_job-dynamic-config branch from 432007d to 7dd5a1e Compare July 22, 2024 18:10
@lavoiesl lavoiesl changed the title fix(active_job): Honour dynamic changes in configuration fix(active-job): Honour dynamic changes in configuration Jul 22, 2024
@lavoiesl
Copy link
Contributor Author

fix(active-job) works! But it's the title of the PR that needs to be changed, not the commit message 🤦🏼

@lavoiesl lavoiesl force-pushed the seb-active_job-dynamic-config branch from 7dd5a1e to 30b7845 Compare July 22, 2024 18:13
@arielvalentin
Copy link
Collaborator

Yes sorry. It is indeed the title. When we merge PRs we squash all commits down into a single commit using the PR title.

@kaylareopelle
Copy link
Contributor

@lavoiesl - Thanks for this PR! I'd like to get input from other members of the SIG about this change. I've added it to the agenda for tomorrow's meeting.

You're welcome to join the SIG meeting if you're interested! You can access the calendar invite by joining this Google Group. We meet Tuesdays at 9:00 AM PT.

Mostly, I'm concerned about setting a precedent to accommodate dynamic configuration. I'm not sure what OTel's stance is on this idea and want more input.

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

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

Hi @lavoiesl, we chatted about this in the SIG and are comfortable merging in this change.

Though we don't condone nor support dynamic changes in configuration, we can make this adjustment to resolve the regression you're experiencing.

Thank you for your submission and for adding tests too :)

@kaylareopelle
Copy link
Contributor

@lavoiesl - It looks like the branch is out-of-date with main and I don't have the permissions to update the branch for you. Could you update your branch so we can merge this in?

@lavoiesl lavoiesl force-pushed the seb-active_job-dynamic-config branch from 30b7845 to 7305fa3 Compare July 23, 2024 21:44
@lavoiesl
Copy link
Contributor Author

Awesome, thank you! Updated 🚀

@kaylareopelle kaylareopelle merged commit df6e43f into open-telemetry:main Jul 23, 2024
55 checks passed
This was referenced Jul 23, 2024
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.

Active job handlers no longer honour configuration changes
3 participants