Skip to content

Micrometer instrumentation, part 3 - #5017

Merged
mateuszrzeszutek merged 4 commits into
open-telemetry:mainfrom
mateuszrzeszutek:micrometer-3
Jan 12, 2022
Merged

Micrometer instrumentation, part 3#5017
mateuszrzeszutek merged 4 commits into
open-telemetry:mainfrom
mateuszrzeszutek:micrometer-3

Conversation

@mateuszrzeszutek

@mateuszrzeszutek mateuszrzeszutek commented Jan 5, 2022

Copy link
Copy Markdown
Member

Continuation of #5001

This PR includes the last missing instruments: LongTaskTimer and Meter.

@mateuszrzeszutek mateuszrzeszutek changed the title Micrometer 3 Micrometer instrumentation, part 3 Jan 5, 2022
@mateuszrzeszutek
mateuszrzeszutek marked this pull request as ready for review January 10, 2022 12:27
@mateuszrzeszutek
mateuszrzeszutek requested review from a team, jack-berg and jsuereth January 10, 2022 12:27
Comment on lines +29 to +33
// we're always locking lock on the whole instrument map; the add/remove methods aren't called
// that often, so it's probably better to opt for correctness in that case - there is a small
// window between removing a single measurement and removing the whole instrument (if it has no
// more measurements) when potentially a new measurement could be added; a ConcurrentHashMap
// wouldn't be enough in this case

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thx


static String statisticInstrumentName(Meter.Id id, Statistic statistic) {
String prefix = id.getName() + ".";
// use "total_time" instead of "total" to avoid clashing with Statistic.TOTAL

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@mateuszrzeszutek
mateuszrzeszutek merged commit 8324b51 into open-telemetry:main Jan 12, 2022
@mateuszrzeszutek
mateuszrzeszutek deleted the micrometer-3 branch January 12, 2022 15:26
RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
* Micrometer instrumentation, part 3

* fix compilation

* add comment

* code review comments
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.

3 participants