Skip to content

Commit 368cc9e

Browse files
authored
Update otel.py
resource attributes can now be merged with OTEL_RESOURCE_ATTRIBUTES
1 parent d571159 commit 368cc9e

File tree

1 file changed

+1
-1
lines changed
  • airflow_provider_opentelemetry/airflow_provider_opentelemetry/hooks

1 file changed

+1
-1
lines changed

airflow_provider_opentelemetry/airflow_provider_opentelemetry/hooks/otel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def __init__(self, otel_conn_id: str = "otel_default", *args, **kwargs) -> None:
163163
conn_valid = True
164164

165165
if conn_valid is True:
166-
self.resource = Resource(
166+
self.resource = Resource.create(
167167
attributes={
168168
HOST_NAME: get_hostname(),
169169
SERVICE_NAME: self.otel_service,

0 commit comments

Comments
 (0)