Skip to content

Commit 561357f

Browse files
committed
temp force log name
1 parent 1821582 commit 561357f

File tree

1 file changed

+1
-3
lines changed
  • opentelemetry-exporter-gcp-logging/src/opentelemetry/exporter/cloud_logging

1 file changed

+1
-3
lines changed

opentelemetry-exporter-gcp-logging/src/opentelemetry/exporter/cloud_logging/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ def export(self, batch: Sequence[LogData]):
105105
project_id = self.project_id
106106
if attributes.get(PROJECT_ID_ATTRIBUTE_KEY):
107107
project_id = str(attributes.get(PROJECT_ID_ATTRIBUTE_KEY))
108-
log_name = self.default_log_name
109-
if attributes.get(LOG_NAME_ATTRIBUTE_KEY):
110-
log_name = str(attributes.get(LOG_NAME_ATTRIBUTE_KEY))
108+
log_name = "otel_python_inprocess_log_name_temp"
111109
if not log_name:
112110
logging.warning(
113111
"No log name provided, cannot write log to Cloud Logging. Set the 'default_log_name' option, or add the 'gcp.log_name' attribute to set a log name."

0 commit comments

Comments
 (0)