Skip to content

Commit

Permalink
Log value of enabled configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKleyman committed Sep 14, 2023
1 parent 4c297b7 commit a4f38df
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions agent/native/ext/lifecycle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,15 +526,19 @@ void elasticApmModuleInit( int moduleType, int moduleNumber )
ELASTIC_APM_CALL_IF_FAILED_GOTO( ensureLoggerInitialConfigIsLatest( tracer ) );
ELASTIC_APM_CALL_IF_FAILED_GOTO( ensureAllComponentsHaveLatestConfig( tracer ) );

config = getTracerCurrentConfigSnapshot( tracer );

ELASTIC_APM_LOG_INFO(
"Custom build (based on version: " PHP_ELASTIC_APM_VERSION ") with "
"- span stack trace disabled by default (stack_trace_min_duration: -1)"
"- WordPress instrumentation disabled by default (ast_process_enabled: false)"
"Custom build based on version: %s."
" Enabled: %s."
" Custom changes: "
"- span stack trace disabled by default (stack_trace_min_duration: -1)"
"- WordPress instrumentation disabled by default (ast_process_enabled: false)"
, PHP_ELASTIC_APM_VERSION
, boolToString(config->enabled)
);
logSupportabilityInfo( logLevel_debug );

config = getTracerCurrentConfigSnapshot( tracer );

if ( ! config->enabled )
{
resultCode = resultSuccess;
Expand Down

0 comments on commit a4f38df

Please sign in to comment.