{"record":{"id":"97c46ec0e84b87f6","repo":"pinpoint-apm/pinpoint","slug":"agentname","errorCode":null,"errorMessage":"- agentName: {}","messagePattern":"- agentName: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/DefaultAgent.java","lineNumber":138,"sourceCode":"            throw e;\n        }\n    }\n\n    protected AgentContextOption buildContextOption(AgentOption agentOption, ObjectName objectName, ProfilerConfig profilerConfig) {\n        return AgentContextOptionBuilder.build(agentOption, objectName, profilerConfig);\n    }\n\n    private AgentSystemConfig agentSystemConfig(ObjectName objectName) {\n        AgentSystemConfig agentSystemConfig = new AgentSystemConfig(objectName.getAgentId(), Version.VERSION);\n        agentSystemConfig.dump(System.getProperties());\n        return agentSystemConfig;\n    }\n\n    private void dumpAgentOption(AgentContextOption agentOption) {\n        final ObjectName objectName = agentOption.getObjectName();\n        logger.warn(\"AgentOption : {}\", objectName.getClass().getSimpleName());\n        logger.warn(\"- agentId: {}\", objectName.getAgentId());\n        logger.warn(\"- agentName: {}\", objectName.getAgentName());\n        logger.warn(\"- applicationName: {}\", objectName.getApplicationName());\n        if (objectName instanceof ObjectNameV4) {\n            ObjectNameV4 v4 = (ObjectNameV4) objectName;\n            logger.warn(\"- serviceName: {}\", objectName.getServiceName());\n            logger.warn(\"- apikey: {}\", MaskUtils.masking(v4.getApiKey(), 2));\n        }\n        logger.info(\"- instrumentation: {}\", agentOption.getInstrumentation());\n    }\n\n\n    private LoggingSystem newLoggingSystem(Path agentPath) {\n        return Log4j2LoggingSystem.searchPath(agentPath);\n    }\n\n    protected ApplicationContext newApplicationContext(AgentContextOption agentOption) {\n        Objects.requireNonNull(agentOption, \"agentOption\");\n        ProfilerConfig profilerConfig = Objects.requireNonNull(agentOption.getProfilerConfig(), \"profilerConfig\");\n","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/DefaultAgent.java#L120-L156","documentation":"Info log in DefaultAgent.dumpAgentOption: dumps the effective agent configuration at startup, including the configured agentName, so users can verify which options the running agent actually picked up.","triggerScenarios":"Agent startup, always emitted as part of the option dump.","commonSituations":"Verifying that an agentName override (-Dpinpoint.agentName or config) took effect; noticing it is null when a display name was expected.","solutions":["No action needed.","Set agentName in pinpoint.config if you want a human-readable display name in the Pinpoint UI.","Remember agentName is optional; null output is normal."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Set pinpoint.agentName explicitly if you rely on display names.","A null agentName in this dump is normal and harmless."],"tags":["logging","agent-startup","configuration"],"backgroundTag":null,"analyzedSha":"744c3d3075e595656abb1ae331ad2c0e4c9eb996","analyzedAt":"2026-09-07T18:48:45.289Z","contentChangedAt":"2026-09-07T18:48:45.289Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}