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

Add support for library instrumentation #978

Closed
losalex opened this issue Jun 21, 2022 · 0 comments
Closed

Add support for library instrumentation #978

losalex opened this issue Jun 21, 2022 · 0 comments
Assignees
Labels
api: logging Issues related to the googleapis/java-logging API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@losalex
Copy link
Contributor

losalex commented Jun 21, 2022

This feature provides an ability to log extra entry with diagnostics structure which contains logging library information. Such entry is logged only once when first entry is written by a process using logging library.
In the future, the diagnostic record could be extended to include more details about libraries used, runtime environment, etc.
Below is example of how the logging record with diagnostic info looks:

{
 "jsonPayload": {
   "logging.googleapis.com/diagnostic": {
     "instrumentation_source": [
       {
         "name": "java",
         "version": "3.9.1"
       }
     ]
   }
 },
 "insertId": "..........CC_7geD6W7jQV1oz_bQ_ee",
 "severity": "INFO",
 "logName": "projects/startup/logs/hello-log",
}
@losalex losalex added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p2 Moderately-important priority. Fix may not be included in next release. api: logging Issues related to the googleapis/java-logging API. labels Jun 21, 2022
@losalex losalex self-assigned this Jun 21, 2022
@losalex losalex closed this as completed Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/java-logging API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
1 participant