forked from mtusi2026/mtusi2026lab6
234 lines
6.7 KiB
JSON
234 lines
6.7 KiB
JSON
{
|
|
"batches": [
|
|
{
|
|
"resource": {
|
|
"attributes": [
|
|
{
|
|
"key": "deployment.environment.name",
|
|
"value": {
|
|
"stringValue": "lab"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.instance.id",
|
|
"value": {
|
|
"stringValue": "52c93b4d96bd40299416de6bfdabd5a7"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.version",
|
|
"value": {
|
|
"stringValue": "lab6-v1"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.language",
|
|
"value": {
|
|
"stringValue": "python"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.name",
|
|
"value": {
|
|
"stringValue": "opentelemetry"
|
|
}
|
|
},
|
|
{
|
|
"key": "telemetry.sdk.version",
|
|
"value": {
|
|
"stringValue": "1.45.1"
|
|
}
|
|
},
|
|
{
|
|
"key": "service.name",
|
|
"value": {
|
|
"stringValue": "messenger-api"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scopeSpans": [
|
|
{
|
|
"scope": {
|
|
"name": "fastapi",
|
|
"version": "0.143.2"
|
|
},
|
|
"spans": [
|
|
{
|
|
"traceId": "zgA5cXn1SteXOQoPbCAwFg==",
|
|
"spanId": "itnQlL+Fnf8=",
|
|
"parentSpanId": "gcQqGXTvfVw=",
|
|
"name": "fastapi.dependencies",
|
|
"kind": "SPAN_KIND_INTERNAL",
|
|
"startTimeUnixNano": "1792196927830342630",
|
|
"endTimeUnixNano": "1792196927830450902",
|
|
"attributes": [
|
|
{
|
|
"key": "code.function.name",
|
|
"value": {
|
|
"stringValue": "src.app.create_app.<locals>.create_message"
|
|
}
|
|
}
|
|
],
|
|
"status": {}
|
|
},
|
|
{
|
|
"traceId": "zgA5cXn1SteXOQoPbCAwFg==",
|
|
"spanId": "OJOZuDOh1v0=",
|
|
"parentSpanId": "gcQqGXTvfVw=",
|
|
"name": "fastapi.endpoint",
|
|
"kind": "SPAN_KIND_INTERNAL",
|
|
"startTimeUnixNano": "1792196927830513761",
|
|
"endTimeUnixNano": "1792196928832275672",
|
|
"attributes": [
|
|
{
|
|
"key": "code.function.name",
|
|
"value": {
|
|
"stringValue": "src.app.create_app.<locals>.create_message"
|
|
}
|
|
},
|
|
{
|
|
"key": "error.type",
|
|
"value": {
|
|
"stringValue": "psycopg.errors.LockNotAvailable"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
},
|
|
{
|
|
"traceId": "zgA5cXn1SteXOQoPbCAwFg==",
|
|
"spanId": "sc90cQibGCc=",
|
|
"parentSpanId": "xNQMHSS3TVo=",
|
|
"name": "POST /api/v1/chats/{chat_id}/messages",
|
|
"kind": "SPAN_KIND_SERVER",
|
|
"startTimeUnixNano": "1792196927829935734",
|
|
"endTimeUnixNano": "1792196928832908059",
|
|
"attributes": [
|
|
{
|
|
"key": "server.port",
|
|
"value": {
|
|
"intValue": "8080"
|
|
}
|
|
},
|
|
{
|
|
"key": "url.scheme",
|
|
"value": {
|
|
"stringValue": "http"
|
|
}
|
|
},
|
|
{
|
|
"key": "network.protocol.version",
|
|
"value": {
|
|
"stringValue": "1.1"
|
|
}
|
|
},
|
|
{
|
|
"key": "http.response.status_code",
|
|
"value": {
|
|
"intValue": "503"
|
|
}
|
|
},
|
|
{
|
|
"key": "error.type",
|
|
"value": {
|
|
"stringValue": "503"
|
|
}
|
|
},
|
|
{
|
|
"key": "http.request.method",
|
|
"value": {
|
|
"stringValue": "POST"
|
|
}
|
|
},
|
|
{
|
|
"key": "url.path",
|
|
"value": {
|
|
"stringValue": "/api/v1/chats/6ccd528d-8829-446e-8cf3-1c2e770f2ad0/messages"
|
|
}
|
|
},
|
|
{
|
|
"key": "server.address",
|
|
"value": {
|
|
"stringValue": "127.0.0.1"
|
|
}
|
|
},
|
|
{
|
|
"key": "http.route",
|
|
"value": {
|
|
"stringValue": "/api/v1/chats/{chat_id}/messages"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"scope": {
|
|
"name": "messenger"
|
|
},
|
|
"spans": [
|
|
{
|
|
"traceId": "zgA5cXn1SteXOQoPbCAwFg==",
|
|
"spanId": "gWhOJ42erpA=",
|
|
"parentSpanId": "OJOZuDOh1v0=",
|
|
"name": "db.session.authenticate",
|
|
"kind": "SPAN_KIND_INTERNAL",
|
|
"startTimeUnixNano": "1792196927830580880",
|
|
"endTimeUnixNano": "1792196928832212284",
|
|
"attributes": [
|
|
{
|
|
"key": "db.system.name",
|
|
"value": {
|
|
"stringValue": "postgresql"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
},
|
|
{
|
|
"traceId": "zgA5cXn1SteXOQoPbCAwFg==",
|
|
"spanId": "gcQqGXTvfVw=",
|
|
"parentSpanId": "xNQMHSS3TVo=",
|
|
"name": "POST /api/v1/chats/{chat_id}/messages",
|
|
"kind": "SPAN_KIND_SERVER",
|
|
"startTimeUnixNano": "1792196927830090105",
|
|
"endTimeUnixNano": "1792196928833353246",
|
|
"attributes": [
|
|
{
|
|
"key": "http.response.status_code",
|
|
"value": {
|
|
"intValue": "503"
|
|
}
|
|
},
|
|
{
|
|
"key": "http.request.method",
|
|
"value": {
|
|
"stringValue": "POST"
|
|
}
|
|
},
|
|
{
|
|
"key": "http.route",
|
|
"value": {
|
|
"stringValue": "/api/v1/chats/{chat_id}/messages"
|
|
}
|
|
}
|
|
],
|
|
"status": {
|
|
"code": "STATUS_CODE_ERROR"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|