summaryrefslogtreecommitdiff
path: root/caddytest/integration/caddyfile_adapt
diff options
context:
space:
mode:
Diffstat (limited to 'caddytest/integration/caddyfile_adapt')
-rw-r--r--caddytest/integration/caddyfile_adapt/tracing.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/caddytest/integration/caddyfile_adapt/tracing.txt b/caddytest/integration/caddyfile_adapt/tracing.txt
new file mode 100644
index 0000000..3228660
--- /dev/null
+++ b/caddytest/integration/caddyfile_adapt/tracing.txt
@@ -0,0 +1,36 @@
+:80 {
+ tracing /myhandler {
+ span my-span
+ }
+}
+----------
+{
+ "apps": {
+ "http": {
+ "servers": {
+ "srv0": {
+ "listen": [
+ ":80"
+ ],
+ "routes": [
+ {
+ "match": [
+ {
+ "path": [
+ "/myhandler"
+ ]
+ }
+ ],
+ "handle": [
+ {
+ "handler": "tracing",
+ "span": "my-span"
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+ }
+} \ No newline at end of file