17 Commits

Author SHA1 Message Date
Krisztian F
f4fc21f7cb
Implement OTel support for access logs (#1080)
This PR adds OpenTelemetry support for access logs with examples.

Example LogRecord in OTel collector's debugexporter:

```
2026-02-28T16:25:54.392Z      info    ResourceLog #0
 Resource SchemaURL:
 Resource attributes:
      -> service.name: Str(default)
      -> telemetry.sdk.version: Str(0.31.0)
      -> telemetry.sdk.name: Str(opentelemetry)
      -> telemetry.sdk.language: Str(rust)
      -> host.name: Str(default.default.svc.cluster.local)
      -> service.namespace: Str(default)
      -> service.version: Str(7da75b0d38c03fb76a9f8c010a4f8de0d7e2b03f-dirty)
 ScopeLogs #0
 ScopeLogs SchemaURL:
 InstrumentationScope request
 LogRecord #0
 ObservedTimestamp: 2026-02-28 16:25:53.359094924 +0000 UTC
 Timestamp: 1970-01-01 00:00:00 +0000 UTC
 SeverityText: INFO
 SeverityNumber: Info(9)
 Body: Empty()
 Attributes:
      -> gateway: Str(default/default)
      -> listener: Str(listener0)
      -> route: Str(default/route0)
      -> src.addr: Str([::1]:55174)
      -> http.method: Str(GET)
      -> http.host: Str(localhost)
      -> http.path: Str(/sse)
      -> http.version: Str(HTTP/1.1)
      -> http.status: Int(200)
      -> trace.id: Str(9b075b593dad653b104d9411cd02169c)
      -> span.id: Str(97fa138ccc3e5f65)
      -> protocol: Str(mcp)
      -> duration: Str(62288ms)
 Trace ID: 9b075b593dad653b104d9411cd02169c
 Span ID: 97fa138ccc3e5f65
 Flags: 0
```
2026-03-03 14:52:25 -08:00
John Howard
69e597fe1f
Improvements to tracing and logging config (#1093)
Part of https://github.com/agentgateway/agentgateway/issues/1078

* Deprecate `config.logging` and `config.tracing` which has been
superseded by frontendPolicies
* Remove reading of those, instead convert to frontendPolicies in local
config processing
* Support path in tracing
* Move MCP to the unified tracing config (for frontendPolicies support)
* Add support to add headers on the backend request

Pulls in part of https://github.com/agentgateway/agentgateway/pull/765/
(the MCP part only; that PR has more)
2026-03-02 13:54:36 -08:00
John Howard
2371a5f37d
Docs: use URL for schemas (#954)
Makes it much more practical to use these
2026-02-12 14:52:28 -08:00
Markus Kobler
36ecb2f2ec
Update config json-schema location (#802)
Small quality-of-life improvement for editing example configs by
renaming `schema/local.json` to `schema/config.json`.

---

The YAML files have been formatted using a formatter that follows
Go/Kubernetes YAML indentation style. I can remove this formatting if
you prefer the change to be as minimal as possible.
2026-01-06 10:42:05 -08:00
John Howard
1559e211c4
docs: use modern CEL function names (#699) 2025-12-04 14:40:54 -08:00
John Howard
7ae1cfa267
examples: fix up LLM tracing examples (#514) 2025-10-09 10:22:33 -07:00
Zhengke Zhou
2bb97cc3d0
Add examples of observability tracing for LLM providers (#424)
* Add examples of observabilitytracing for LLM providers

Signed-off-by: zhengkezhou1 <madzhou1@gmail.com>

* use `cargo run`

---------

Signed-off-by: zhengkezhou1 <madzhou1@gmail.com>
2025-09-12 11:02:02 -04:00
Lin Sun
e62cf4b7c7
add tracing sampling (#310)
* add tracing sampling

and remove a minor typo.

* Update config.yaml

* Update examples/ratelimiting/config.yaml

* Update examples/telemetry/config.yaml

---------

Co-authored-by: John Howard <john.howard@solo.io>
2025-08-13 08:36:23 -07:00
John Howard
777ea21084
improve schema and remove obsolete port field (#230)
* improve schema and remove obsolete port field

* fix unknown fields

* fix validation
2025-07-28 16:45:13 -07:00
John Howard
559282c66b
Agentgateway vNext (#157)
* Agentgateway vNext

* Use 1.88

* Fix telemetry

* Cleanup

* fixes

* fix transform trailers

* Fix test, and openapi

* cleanup protos

* Fix timeouts and examples

* Fix websockets
2025-07-09 12:51:59 -07:00
Eitan Yarmush
654a3f086b
remove proxy references (#68) 2025-04-23 16:38:05 -04:00
Eitan Yarmush
91d9ec9bfc
validate listener name, output protocol (#65)
* validate listener name, output protocol

* -> agentgateway

* fmt
2025-04-23 14:41:23 -04:00
Nadine Spies
ed35521d19
Fix RBAC (#59) 2025-04-22 11:06:41 -04:00
Eitan Yarmush
e1b1f2adb5
Various qol fixes (#37)
* various qol-fixes

* formatting

* no more unwraps in pool :)

* feature for gcp
2025-04-16 15:54:32 -04:00
Peter Jausovec
26735ae142
fix id's in examples (#36) 2025-04-16 12:25:53 -04:00
Eitan Yarmush
53154a3805 rename 2025-04-16 14:46:48 +00:00
John Howard
d1e86af190
tracing: add example and additional attributes (#34)
* tracing: add example and additional attributes

Basically you can add static tags or lookup from JWT. In the future
we will probably allow more complex lookups.

This uses globals which is gross, but the core uses globals too so its
fitting the pattern

* add metrics

* optional tags

---------

Co-authored-by: Eitan Yarmush <eitan.yarmush@solo.io>
2025-04-15 22:48:31 -04:00