Commit 281cc11f authored by Rogge, Torben's avatar Rogge, Torben
Browse files

Update hiphop/service.py

parent 2c29a147
Pipeline #43332 passed with stages
in 53 seconds
......@@ -3,7 +3,7 @@ import requests, os, logging, json
import elasticapm
from elasticapm.contrib.flask import ElasticAPM
# A very boring and basic hip-hop-service to demonstrate
# A very boring and basic hip-hop-service to demonstrate
# observability via tracing across multiple services.
logging.basicConfig(level=logging.INFO)
......@@ -12,7 +12,7 @@ service = os.environ.get('BASE', 'hiphop-svc')
tier = int(os.environ.get('TIER', '1'))
id = os.environ.get('NS', 'unknown')
app = Flask(__name__)
apm = ElasticAPM(app, service_name=f"{id}-{service}")
apm = ElasticAPM(app, service_name=f"{id}-{service}-{tier}")
@app.route('/')
def index():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment