We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1821582 commit 561357fCopy full SHA for 561357f
opentelemetry-exporter-gcp-logging/src/opentelemetry/exporter/cloud_logging/__init__.py
@@ -105,9 +105,7 @@ def export(self, batch: Sequence[LogData]):
105
project_id = self.project_id
106
if attributes.get(PROJECT_ID_ATTRIBUTE_KEY):
107
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))
+ log_name = "otel_python_inprocess_log_name_temp"
111
if not log_name:
112
logging.warning(
113
"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