Created
January 16, 2026 05:40
-
-
Save xeioex/a6ac95c44df565134415d6901fac3cc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load_module /home/xeioex/workspace/nginx/nginx/objs/ngx_otel_module.so; | |
| error_log /dev/stdout info; | |
| daemon off; | |
| master_process off; | |
| events { | |
| } | |
| http { | |
| js_import main from mcp.js; | |
| js_set $mcp_tool main.mcp_tool_name; | |
| js_set $mcp_status main.mcp_tool_status; | |
| otel_exporter { | |
| endpoint localhost:4317; | |
| } | |
| server { | |
| listen 9000; | |
| location / { | |
| otel_trace on; | |
| otel_span_attr "mcp.name" $mcp_tool; | |
| otel_span_attr "mcp.status" $mcp_status; | |
| js_header_filter main.clear_content_length; | |
| js_body_filter main.filter; | |
| proxy_pass http://127.0.0.1:9001; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment