Comments (5)
Agree that this could be potentially simplified through one of the two methods you mentioned. If you have suggestions, feel free to also directly open a PR. Sometimes discussing code is easier :-)
from apm-server.
Can I find some more info on the role of the processors ? Might be that helps.
A direct way can be as below
type Processor interface {
Validate(io.Reader) error
Payload
Name() string
}
type processor struct {} // this struct can implement the default methods.
func (p *processor) Transform() []beat.Event {
return p.payload.Transform()
}
Now for transaction processor we can embed the base processor so that it can access all methods of the base.
type TxProcessor struct {
Processor
}
from apm-server.
The role of processors is to take data, validate it, transform it and convert one input event to one or multiple output events.
Composing the Processors from a base processor is very/same as we do with MetricSets in metricbeat: https://github.com/elastic/beats/blob/master/metricbeat/module/apache/status/status.go#L44 So it's definitively a direction I like.
I would also like to get @simitt and @jalvz involved on this as they were thinking about how to better structure the code quite a bit.
from apm-server.
Sure.Will implement once we have some consensus.
from apm-server.
Will start on this.
from apm-server.
Related Issues (20)
- Review and update changelog with docappender changes HOT 1
- Incorrect otlp/http http.response.status_code in request log
- feat: support otlp/http JSON protobuf encoding
- apm-server binary is not statically linked HOT 1
- Support APM Server on Amazon Linux 2023
- [docs] Remove false deprecation note for standalone apm-server
- APM Server 8.13.0 Test Plan HOT 1
- Document release process with the automation workflow HOT 4
- [DOCS] Create openAPI specifications for public APM APIs
- Fix automation, bring back openAPI spec HOT 1
- API UI failing for error events derived from traces with Jaeger agent
- APM Server 8.14.0 Test Plan HOT 6
- ci: minor-release automation is not aligned with expectations HOT 4
- ci: minor-release automation does not sign commits HOT 3
- release: review test plan template
- Consider flattening headers and cookies HOT 8
- Perf regression, too many small bulk requests HOT 5
- Document 7.17.20 being broken for apm-server managed by Fleet with self-signed certificates HOT 1
- Fix/Improve APM Server Smoke Tests HOT 3
- APM Event Intake: All errors are considered exceptions. HOT 1
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 apm-server.