Skip to content

Commit

Permalink
Update otel.py
Browse files Browse the repository at this point in the history
resource attributes can now be merged with OTEL_RESOURCE_ATTRIBUTES
  • Loading branch information
howardyoo authored Aug 28, 2024
1 parent d571159 commit 368cc9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def __init__(self, otel_conn_id: str = "otel_default", *args, **kwargs) -> None:
conn_valid = True

if conn_valid is True:
self.resource = Resource(
self.resource = Resource.create(
attributes={
HOST_NAME: get_hostname(),
SERVICE_NAME: self.otel_service,
Expand Down

0 comments on commit 368cc9e

Please sign in to comment.