Comments (2)
We also create a lot of middleware.State's. We should just put it in the context and carry it through like that.
from coredns.
...But context.Context is a value and only propagates downwards, so you can't add something in a later layer and read it back in the upper one.
A second try by wrapping dns.ResponseWriter and putting metrics in there, also does not work, because it might be wrapped further by other middleware.
In the end for metrics we should maybe just have a function the calls into the metrics and add the metric. Also because even if the above would work, in the end you'll still need a metric to be defined to actually increment it.
from coredns.
Related Issues (20)
- crun: chdir to `/home/nonroot`: Permission denied: OCI permission denied
- Can I use default system dns in Android ?
- DNS requests to coreDNS container are not making it back to client machine HOT 1
- Q: How to share context between dnsserver.Server instances in a plugin?
- Vulneribilities reported for multiple deplendencies in cordns HOT 1
- local dns records don't go into effect HOT 1
- local: coredns incorrectly marks `any.localhost` as `dns.RcodeNameError`
- Pods are not receiving a balanced load
- Failed to download CoreDNS on a IPv6-only server HOT 3
- Panic on /miekg/dns/labels
- How to restart forward plugin after updating nameserver inside resolve.conf
- coredns secondary received notify can not use udp.is use tcp.
- error getting ClusterInformation: connection is unauthorized: Unauthorized HOT 1
- Coredns forward upstream nameserver is invalid when policy is round_robin HOT 2
- Question about truncate and compress
- When is v1.11.3 going to get released? Need it for security fixes HOT 2
- DNS rate limit to 8.8.8.8, as over 300K (before only 5k) requests per 30-minute interval HOT 1
- plugin/hosts error in metrics coredns_hosts_entries
- Improvement of OpenSSF Scorecard Score HOT 1
- Problem with rewrite+dns64 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coredns.