Skip to content

Commit

Permalink
Update agent logger prefix (#3007)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored May 17, 2021
1 parent c24949e commit d6141dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class LoggingConfigurer {
private static final String SIMPLE_LOGGER_DATE_TIME_FORMAT_PROPERTY =
"io.opentelemetry.javaagent.slf4j.simpleLogger.dateTimeFormat";
private static final String SIMPLE_LOGGER_DATE_TIME_FORMAT_DEFAULT =
"'[opentelemetry.auto.trace 'yyyy-MM-dd HH:mm:ss:SSS Z']'";
"'[otel.javaagent 'yyyy-MM-dd HH:mm:ss:SSS Z']'";
private static final String SIMPLE_LOGGER_DEFAULT_LOG_LEVEL_PROPERTY =
"io.opentelemetry.javaagent.slf4j.simpleLogger.defaultLogLevel";
private static final String SIMPLE_LOGGER_PREFIX =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class AgentLoadedIntoBootstrapTest extends Specification {
, true) == 0
}

// this tests the case where someone adds the contents of opentelemetry-auto.jar by mistake to
// their application's "uber.jar"
// this tests the case where someone adds the contents of opentelemetry-javaagent.jar by mistake
// to their application's "uber.jar"
//
// the reason this can cause issues is because we locate the agent jar based on the CodeSource of
// the AgentBootstrap class, and then we add that jar file to the bootstrap class path
Expand Down

0 comments on commit d6141dd

Please sign in to comment.