-
Notifications
You must be signed in to change notification settings - Fork 21
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
Broker Side Tracing (alpha) #126
Open
eolivelli
wants to merge
30
commits into
master
Choose a base branch
from
tracing
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eolivelli
commented
Apr 12, 2024
pulsar-tracing/src/main/resources/META-INF/services/broker_interceptor.yml
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-tracing/src/main/java/com/datastax/oss/pulsar/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
eolivelli
commented
Apr 15, 2024
pulsar-jms-tracing/src/main/java/com/datastax/oss/pulsar/jms/tracing/TracingUtils.java
Outdated
Show resolved
Hide resolved
pulsar-jms-tracing/src/main/java/com/datastax/oss/pulsar/jms/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-jms-tracing/src/main/java/com/datastax/oss/pulsar/jms/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-jms-tracing/src/main/java/com/datastax/oss/pulsar/jms/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
… bit more infor for auth is traced
eolivelli
commented
May 1, 2024
pulsar-jms-tracing/src/main/java/com/datastax/oss/pulsar/jms/tracing/BrokerTracing.java
Outdated
Show resolved
Hide resolved
pulsar-jms-tracing/src/main/java/com/datastax/oss/pulsar/jms/tracing/BrokerTracing.java
Show resolved
Hide resolved
pulsar-jms-tracing/src/main/java/com/datastax/oss/pulsar/jms/tracing/BrokerTracing.java
Show resolved
Hide resolved
…ose), better grabularaty for logger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JMS Traces is a configurable pulsar interceptor that logs a variety of internal events.
Traces are sent to the regular SLF4J logger with the logger name “jms-tracing-<event>”. See jmsTracingEventList’s description below for a full list of possible events (lower cased in logger name).
One can configure a logger component (log4j etc) to separate these into a separate file, send to a separate destination, etc. as needed, see example below.
Alternatively this can be used in grep/splunk searches across the logs.
Traces are JSON and can be parsed as such.
Configuration options
brokerInterceptorsDirectory is a standard pulsar’s parameter that points to a directory with interceptors’ nar files. Place the nar into the directory configured there.
brokerInterceptors is a standard pulsar’s parameter that enables available (placed in the directory above) interceptors. Add jms-tracing to the list to enable.
jmsTracingEventList is a comma-separated list of event types to trace
Available options are:
By default ALL events are traced.
jmsTracingLevel is a tracing level for all events except for the MESSAGE events.
Available options are:
Default is OFF.
jmsTracingTraceSystemTopics is respected where the topic is known.
MESSAGE events will use per topic’s or per subscription’s jmsTraceLevel:
cacheTraceLevelsDurationSec sets duration in seconds of how frequently trace levels set per topic or per subscription should be re-read. Default is 10 seconds.
jmsTracingMaxBinaryDataLength controls if the data preview for the entries should be included (value over 0) and the max length of data to trim it to. Data will be output as a text unless the conversion to text throws an exception, in that case as a hex string. Default is 256.
jmsTracingTraceSystemTopics controls whether events related to the system (pulsar-internal) topics should be traced. Applicable to the events where the topic is known. Default is false.
jmsTracingTraceSchema controls whether details of topic schema should be traced. Default is false.