Files
ImageApi/docs/tracing-baseline/post-migration/span-inventory.json
T
Cameron CordesandClaude Opus 5.5 e754e149d7 parity(#143): post-migration span capture + diff vs #137 baseline
Captured from feature/tracing-migration f510940 (rebased on master 8284509),
same Jaeger / request set / DB snapshot procedure as pre-migration. Result:
names + semantic attributes preserved, traceparent intact, no orphaned spans,
async/streaming paths now single traces. See post-migration/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 17:29:31 -04:00

918 lines
19 KiB
JSON

[
{
"operation": "generate_video_thumbnail",
"span_count": 414,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "(none)",
"attribute_keys": [
"file-name",
"library",
"otel.scope.name",
"span.kind",
"type"
],
"parents": {
"(remote)": 414
},
"root_count": 0
},
{
"operation": "db.query.get_job_by_id",
"span_count": 16,
"trace_count": 16,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"GET /insights/generation/status": 16
},
"root_count": 0
},
{
"operation": "GET /insights/generation/status",
"span_count": 16,
"trace_count": 16,
"kind": "server",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"http.client_ip",
"http.flavor",
"http.host",
"http.method",
"http.route",
"http.scheme",
"http.status_code",
"http.target",
"http.user_agent",
"otel.scope.name",
"otel.status_code",
"request_id",
"span.kind",
"trace_id"
],
"parents": {},
"root_count": 16
},
{
"operation": "llm.request",
"span_count": 12,
"trace_count": 2,
"kind": "client",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"http.status_code",
"llm.model",
"llm.operation",
"llm.provider",
"llm.tokens.input",
"llm.tokens.output",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1,
"ai.rag.search_daily_summaries": 2,
"ai.agentic.loop": 9
},
"root_count": 0
},
{
"operation": "db.query.get_tag_counts_batch",
"span_count": 4,
"trace_count": 2,
"kind": "internal",
"scope": "db/image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"file_count",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"list_photos": 4
},
"root_count": 0
},
{
"operation": "list_photos",
"span_count": 4,
"trace_count": 2,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"camera_make",
"camera_model",
"date_from",
"date_to",
"exclude_tag_ids",
"file_count",
"gps_lat",
"gps_lon",
"gps_radius_km",
"lens_model",
"library",
"media_type",
"optimization.batch_tags",
"optimization.db_sort",
"otel.scope.name",
"otel.status_code",
"pagination.enabled",
"pagination.limit",
"pagination.offset",
"path",
"recursive",
"returned_count",
"sort",
"span.kind",
"tag_filter_mode",
"tag_ids",
"total_count"
],
"parents": {
"(remote)": 1,
"GET /photos": 3
},
"root_count": 0
},
{
"operation": "db.query.list_rel_paths_for_libraries",
"span_count": 4,
"trace_count": 2,
"kind": "internal",
"scope": "db/image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"list_photos": 4
},
"root_count": 0
},
{
"operation": "db.query.get_persona",
"span_count": 4,
"trace_count": 2,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1,
"http.insights.generate_agentic": 1,
"ai.agentic.loop": 1,
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.get_prefs",
"span_count": 4,
"trace_count": 3,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"POST /insights/chat/stream": 1,
"ai.insight.generate_agentic": 1,
"http.insights.generate_agentic": 1,
"list_memories": 1
},
"root_count": 0
},
{
"operation": "db.query.count_for_library",
"span_count": 4,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"watcher.initial_probe": 4
},
"root_count": 0
},
{
"operation": "db.query.list_entities",
"span_count": 4,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 4
},
"root_count": 0
},
{
"operation": "db.query.get_memories_in_window",
"span_count": 4,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"list_memories": 4
},
"root_count": 0
},
{
"operation": "GET /photos",
"span_count": 3,
"trace_count": 2,
"kind": "server",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"http.client_ip",
"http.flavor",
"http.host",
"http.method",
"http.route",
"http.scheme",
"http.status_code",
"http.target",
"http.user_agent",
"otel.scope.name",
"otel.status_code",
"request_id",
"span.kind",
"trace_id"
],
"parents": {
"(remote)": 2
},
"root_count": 1
},
{
"operation": "db.query.get_exif",
"span_count": 3,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 2,
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.insert.upsert_entity",
"span_count": 3,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 2,
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.has_any_faces",
"span_count": 2,
"trace_count": 2,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1,
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.get_location_count",
"span_count": 2,
"trace_count": 2,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1,
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.get_event_count",
"span_count": 2,
"trace_count": 2,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1,
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.has_any_summaries",
"span_count": 2,
"trace_count": 2,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1,
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.find_similar_summaries_with_time_weight",
"span_count": 2,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.rag.search_daily_summaries": 2
},
"root_count": 0
},
{
"operation": "ai.rag.search_daily_summaries",
"span_count": 2,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"date",
"limit",
"otel.scope.name",
"otel.status_code",
"query",
"results_count",
"span.kind",
"time_weighted"
],
"parents": {
"ai.agentic.loop": 2
},
"root_count": 0
},
{
"operation": "db.insert.upsert_photo_link",
"span_count": 2,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 2
},
"root_count": 0
},
{
"operation": "db.insert.upsert_fact",
"span_count": 2,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 2
},
"root_count": 0
},
{
"operation": "db.update.update_training_messages",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1
},
"root_count": 0
},
{
"operation": "ai.chat.turn.stream",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"file_path",
"library_id",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"POST /insights/chat/stream": 1
},
"root_count": 0
},
{
"operation": "POST /insights/chat/stream",
"span_count": 1,
"trace_count": 1,
"kind": "server",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"http.client_ip",
"http.flavor",
"http.host",
"http.method",
"http.route",
"http.scheme",
"http.status_code",
"http.target",
"http.user_agent",
"otel.scope.name",
"otel.status_code",
"request_id",
"span.kind",
"trace_id"
],
"parents": {},
"root_count": 1
},
{
"operation": "db.query.get_current_insight_for_library",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.chat.turn.stream": 1
},
"root_count": 0
},
{
"operation": "watcher.initial_probe",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "(none)",
"attribute_keys": [
"otel.scope.name",
"span.kind"
],
"parents": {},
"root_count": 1
},
{
"operation": "db.query.get_tags_for_path",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"path",
"span.kind"
],
"parents": {
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.get_links_for_photo",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 1
},
"root_count": 0
},
{
"operation": "db.query.get_active_job",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"http.insights.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "ai.agentic.loop",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"iterations_used",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.insert.store_insight",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.update.complete_job",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"http.insights.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.update.update_facts_insight_id",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.insight.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.query.resolve_content_hash",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 1
},
"root_count": 0
},
{
"operation": "ai.insight.generate_agentic",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"backend",
"file_path",
"images_inline",
"max_iterations",
"model",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"http.insights.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "http.insights.generate_agentic",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"backend",
"file_path",
"job_id",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"POST /insights/generate/agentic": 1
},
"root_count": 0
},
{
"operation": "POST /insights/generate/agentic",
"span_count": 1,
"trace_count": 1,
"kind": "server",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"http.client_ip",
"http.flavor",
"http.host",
"http.method",
"http.route",
"http.scheme",
"http.status_code",
"http.target",
"http.user_agent",
"otel.scope.name",
"otel.status_code",
"request_id",
"span.kind",
"trace_id"
],
"parents": {},
"root_count": 1
},
{
"operation": "db.query.faces_for_hash",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"content_hash",
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"ai.agentic.loop": 1
},
"root_count": 0
},
{
"operation": "db.update.cancel_active_jobs",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"http.insights.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "db.insert.create_job",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"db.operation",
"db.query_type",
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"http.insights.generate_agentic": 1
},
"root_count": 0
},
{
"operation": "list_memories",
"span_count": 1,
"trace_count": 1,
"kind": "internal",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"otel.scope.name",
"otel.status_code",
"span.kind"
],
"parents": {
"GET /memories": 1
},
"root_count": 0
},
{
"operation": "GET /memories",
"span_count": 1,
"trace_count": 1,
"kind": "server",
"scope": "image-server",
"status": "OK",
"attribute_keys": [
"http.client_ip",
"http.flavor",
"http.host",
"http.method",
"http.route",
"http.scheme",
"http.status_code",
"http.target",
"http.user_agent",
"otel.scope.name",
"otel.status_code",
"request_id",
"span.kind",
"trace_id"
],
"parents": {},
"root_count": 1
}
]