Skip to content

Commit c721557

Browse files
authored
feat: Add support for instrumentation version annotations (#916)
1 parent 2281ada commit c721557

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/release-please.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ branches:
66
handleGHRelease: true
77
releaseType: java-yoshi
88
branch: java7
9+
extraFiles:
10+
- src/main/java/com/google/cloud/logging/logback/LoggingAppender.java

owlbot.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'.github/blunderbuss.yml',
2525
'CONTRIBUTING.md',
2626
'.github/auto-label.yaml',
27+
".github/release-please.yml",
2728
])
2829

2930
# --------------------------------------------------------------------------

src/main/java/com/google/cloud/logging/logback/LoggingAppender.java

+3
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ public class LoggingAppender extends UnsynchronizedAppenderBase<ILoggingEvent> {
104104
private static final List<LoggingEventEnhancer> DEFAULT_LOGGING_EVENT_ENHANCERS =
105105
ImmutableList.<LoggingEventEnhancer>of(new MDCEventEnhancer());
106106
public static final String JAVA_LOGBACK_LIBRARY_NAME = "java-logback";
107+
// {x-version-update:google-cloud-logging-logback:current}
108+
public static final String DEFAULT_INSTRUMENTATION_VERSION = "1.0.0";
109+
// {x-version-update-end}
107110
private static boolean instrumentationAdded = false;
108111
private static Object instrumentationLock = new Object();
109112

0 commit comments

Comments
 (0)