{"record":{"id":"0f75e9ef2a970155","repo":"pinpoint-apm/pinpoint","slug":"servicename","errorCode":null,"errorMessage":"- serviceName: {}","messagePattern":"- serviceName: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/DefaultAgent.java","lineNumber":142,"sourceCode":"    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\n        String factoryClazzName = getInjectionModuleFactoryClazzName(profilerConfig);\n        ModuleFactoryResolver moduleFactoryResolver = new DefaultModuleFactoryResolver(factoryClazzName);\n        ModuleFactory moduleFactory = moduleFactoryResolver.resolve();\n        return new DefaultApplicationContext(agentOption, moduleFactory);","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/pinpoint-apm/pinpoint/blob/744c3d3075e595656abb1ae331ad2c0e4c9eb996/agent-module/profiler/src/main/java/com/navercorp/pinpoint/profiler/DefaultAgent.java#L124-L160","documentation":"WARN log line printed only when the ObjectName is an ObjectNameV4 (Pinpoint v3+ multi-tenancy model), showing the serviceName (organization/workspace). Informational; confirms v4 naming metadata was resolved.","triggerScenarios":"Agent startup with ObjectNameV4 in use; skipped entirely for older ObjectName implementations (the instanceof ObjectNameV4 guard).","commonSituations":"Migrating to Pinpoint v3+/v4 agent where serviceName and apikey are required; verifying tenancy settings took effect.","solutions":["No action needed.","If serviceName is null/wrong, set it in pinpoint.config (e.g. pinpoint.serviceName) and restart.","Confirm your collector/Web supports v4 ObjectName before enabling serviceName-based tenancy."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// only relevant when serviceName (v4) is expected\nif (System.getProperty(\"pinpoint.serviceName\") == null) { /* configure v4 tenancy */ }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["When migrating to v4 agents, set serviceName in pinpoint.config before rollout.","Confirm collector support for ObjectNameV4; otherwise stay on the older naming scheme."],"tags":["logging","agent-startup","multi-tenancy"],"backgroundTag":null,"analyzedSha":"744c3d3075e595656abb1ae331ad2c0e4c9eb996","analyzedAt":"2026-09-07T18:48:45.289Z","contentChangedAt":"2026-09-07T18:48:45.289Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}