Skip to content

Can't understand what is library instrumentation #6403

Closed Answered by Roiocam
Roiocam asked this question in Q&A
Discussion options

You must be logged in to vote

After re-reading the contributed markdown, I seem to understand the meaning of library instrumentation.

there is two way that create monitor for specific library:

  1. for those library has callback/interceptor api: using Library instrumentation.
  2. for another library without those api: use the Agent instrumentation.

For exmaple:

org.apache.kafka.clients.producer.KafkaProducer has method Future<RecordMetadata> send(ProducerRecord<K, V> record, Callback callback) .

the developer could write some mesuring code on callback.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@Roiocam
Comment options

@Roiocam
Comment options

@mateuszrzeszutek
Comment options

@Roiocam
Comment options

@mateuszrzeszutek
Comment options

Answer selected by Roiocam
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants