Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actualwitch committed Nov 3, 2023
1 parent 2e9bbb1 commit 637be08
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dc_resource('otel-collector', labels=["infra"])
dc_resource('push-gateway', labels=["infra"])
dc_resource('django', labels=["examples"])
dc_resource('fastapi', labels=["examples"])
dc_resource('otlp', labels=["examples"])
dc_resource('starlette', labels=["examples"])
3 changes: 1 addition & 2 deletions examples/django_example/django_example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
branch="main",
commit="67a1b3a",
version="0.1.0",
tracker="prometheus",
service_name="django-example",
service_name="django",
)

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down
2 changes: 1 addition & 1 deletion examples/export_metrics/otel-prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "prometheus",
"port": 9464,
},
service_name="my-service",
service_name="prom-exporter",
)


Expand Down
2 changes: 1 addition & 1 deletion examples/export_metrics/otlp-http.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "otlp-proto-http",
"push_interval": 1000,
},
service_name="my-service",
service_name="otlp-exporter",
)


Expand Down
2 changes: 1 addition & 1 deletion examples/export_metrics/otlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "otlp-proto-grpc",
"push_interval": 1000,
},
service_name="my-service",
service_name="otlp-exporter",
)


Expand Down
2 changes: 1 addition & 1 deletion examples/export_metrics/prometheus-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "prometheus",
"port": 9464,
},
service_name="my-service",
service_name="prom-exporter",
)


Expand Down
2 changes: 1 addition & 1 deletion examples/fastapi-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_pretty_flower(flower_name: str):
return f"A {flower_name} is pretty"


init(service_name="fastapi-example")
init(service_name="fastapi")


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion examples/starlette-otel-exemplars.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Exemplars support requires some additional configuration on autometrics,
# so we need to initialize it with the proper settings
init(tracker="prometheus", enable_exemplars=True, service_name="starlette-example")
init(tracker="prometheus", enable_exemplars=True, service_name="starlette")


# We need to add tracer decorator before autometrics so that we see the spans
Expand Down

0 comments on commit 637be08

Please sign in to comment.