File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 43
43
DEFAULT_COLLECT_PROFILING = False
44
44
DEFAULT_AGENT_SERVICE = "localhost"
45
45
DEFAULT_EXPORTER_PROTOCOL = "grpc"
46
- DEFAULT_SERVICE_NAME = "unknown_service: python"
46
+ DEFAULT_SERVICE_NAME = f" python-service- { os . getpid () } "
47
47
DEFAULT_LOG_LEVEL = "INFO"
48
48
DEFAULT_PROPAGATORS = "b3"
49
49
DEFAULT_SAMPLE_RATE = 1
68
68
"Missing service name. Specify either "
69
69
+ "OTEL_SERVICE_NAME/MW_SERVICE_NAME environment variable or service_name in the "
70
70
+ "options parameter. If left unset, this will show up in middleware "
71
- + "as unknown_service: python"
71
+ + "as python-service-pid "
72
72
)
73
73
74
74
log_levels = {
@@ -245,7 +245,7 @@ def __init__(
245
245
OTEL_SERVICE_NAME , os .environ .get (MW_SERVICE_NAME , service_name )
246
246
)
247
247
if not self .service_name :
248
- _logger .warning (MISSING_SERVICE_NAME_ERROR )
248
+ _logger .debug (MISSING_SERVICE_NAME_ERROR )
249
249
self .service_name = DEFAULT_SERVICE_NAME
250
250
251
251
self .collect_traces = parse_bool (MW_APM_COLLECT_TRACES , collect_traces )
You can’t perform that action at this time.
0 commit comments