Skip to content

Commit

Permalink
add custom container tag to metrics and log
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Nov 13, 2023
1 parent 49f0240 commit c26059c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/productcatalogservice/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func initResource() *sdkresource.Resource {
sdkresource.WithProcess(),
sdkresource.WithContainer(),
sdkresource.WithHost(),
sdkresource.WithAttributes(attribute.String("datadog.container.tag.team", "otel")),
)
resource, _ = sdkresource.Merge(
sdkresource.Default(),
Expand Down
1 change: 1 addition & 0 deletions src/recommendationservice/recommendation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def check_feature_flag(flag_name: str):
resource=Resource.create(
{
'service.name': service_name,
'datadog.container.tag.team': "otel",
}
),
)
Expand Down

0 comments on commit c26059c

Please sign in to comment.