Skip to content

Comments

Move probe initialization to auto#1906

Merged
MrAlias merged 2 commits intoopen-telemetry:mainfrom
MrAlias:mv-probe-list
Mar 3, 2025
Merged

Move probe initialization to auto#1906
MrAlias merged 2 commits intoopen-telemetry:mainfrom
MrAlias:mv-probe-list

Conversation

@MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Feb 28, 2025

Instead of initializing all probes within the manger, have Instrumentation handle the creation of all wanted probes.

This cleans up unneeded context being passed to the NewManager call (i.e. globalImpl and Version()) and these values can be used where they are defined.

This also is a first step in accepting probes as options to Instrumentation which is a goal of #1105.

@MrAlias MrAlias requested a review from a team as a code owner February 28, 2025 22:02
@MrAlias MrAlias force-pushed the mv-probe-list branch 2 times, most recently from 9fd1ed2 to eee5d2b Compare February 28, 2025 22:18
Instead of initializing all probes within the manger, have
Instrumentation handle the creation of all wanted probes.

This cleans up unneeded context being passed to the NewManager call
(i.e. globalImpl and Version()) and these values can be used where they
are defined.

This also is a first step in accepting probes as options to
Instrumentation which is a goal of open-telemetry#1105.
Copy link
Member

@damemi damemi left a comment

Choose a reason for hiding this comment

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

Looks great

This also is a first step in accepting probes as options to Instrumentation which is a goal of #1105.

Just so I understand, you mean eventually passing the probes to NewInstrumentation? That's what I had in mind

@MrAlias
Copy link
Contributor Author

MrAlias commented Mar 3, 2025

Just so I understand, you mean eventually passing the probes to NewInstrumentation? That's what I had in mind

Correct 👍

@MrAlias MrAlias merged commit 02f2715 into open-telemetry:main Mar 3, 2025
28 checks passed
@MrAlias MrAlias deleted the mv-probe-list branch March 3, 2025 15:58
@MrAlias MrAlias added this to the v0.22.0 milestone Apr 24, 2025
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.

2 participants