{"id":19327585,"url":"https://github.com/deepflowio/deepflow-app","last_synced_at":"2026-04-07T15:32:27.979Z","repository":{"id":42225657,"uuid":"508557212","full_name":"deepflowio/deepflow-app","owner":"deepflowio","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-01T07:09:37.000Z","size":6972,"stargazers_count":14,"open_issues_count":11,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-01T09:40:13.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepflowio.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-29T05:24:12.000Z","updated_at":"2026-04-01T07:09:42.000Z","dependencies_parsed_at":"2023-09-22T12:58:31.094Z","dependency_job_id":"8e6f2649-9e7f-431a-a252-a2d5da38fe3b","html_url":"https://github.com/deepflowio/deepflow-app","commit_stats":null,"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"purl":"pkg:github/deepflowio/deepflow-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fdeepflow-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fdeepflow-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fdeepflow-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fdeepflow-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepflowio","download_url":"https://codeload.github.com/deepflowio/deepflow-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fdeepflow-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31518528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T02:17:40.167Z","updated_at":"2026-04-07T15:32:27.957Z","avatar_url":"https://github.com/deepflowio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeepFlow-app\n\nDeepFlow-app 是在[DeepFlow](https://github.com/deepflowys/deepflow)可观测性平台基础上，提供调用链路追踪功能\n\n## 背景和前提\n\nDeepFlow 将系统调用和网络调用相关的细节以 Log Event 格式存储下来，依据 Flow `type` 分类存在这样三种数据：\n- request: 单次请求 Event 数据。\n- response: 单次响应 Event 数据。\n- session: 一次会话 Event 数据，这类数据符合类 Span 数据的基本定义。\n\n所以，这里是将已经存在的 Flow Log Event 转换为类 Span 数据，即：合并 flow `type` 里的 request 和 response 数据为 seesion 数据，并和隶属同一次调用的 session 数据合并排序，转换为符合调用栈顺序的类 Span 数据。\n\n## 如何关联 Flow Log\n\n- 依据`_id`查询到相关的所有 Flow Log Event。\n  - 使用 tcp_seq 查询 net span。\n  - 使用 syscall_trace_id 查询 sys span。\n  - 使用 trace_id, span_id, parent_span_id, x_request_id 查询 app span(APM) 数据。\n- 将 request 和 response 数据合并为 seesion 数据，构造类 Span 数据。\n- 排序合并后的数据，构建符合调用栈的类 Span 数据。\n\n## 其他\n相关细节请参考[这里](https://github.com/deepflowio/deepflow-app/blob/feature-edit-desc/HOW-TO-GET-SPAN-LIKE-DATA.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepflowio%2Fdeepflow-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepflowio%2Fdeepflow-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepflowio%2Fdeepflow-app/lists"}