Comments (2)
OK, this looks like a limitation in the generator, but one could argue that it is also a quirk in the ECS schema definition.
The tracing
root object is described with a prefix: ''
, the same as the base
root object - on inspection these are the only two root objects defined with an empty string prefix.
I think it might make more sense for the schema to represent the trace
and transaction
object as either child objects on the base
root, or to flatten the hierarchy by one level and have both trace
and transaction
exist as their own root objects. This would at least ensure that the schema is more consistent with itself.
In the meantime I will modify the generator to treat this object as described in the documentation and will raise an issue on the ecs repo.
from ecs-dotnet.
Ah yeah for simplicity's sake both IDs were added in the same file "tracing", but their key names should actually be "trace.id" and "transaction.id".
Relying on the key flat_name in either the nested or flat representation of ECS yaml files will get you the correct key names for fields (base fields are also quirky that way).
You should not rely on the nesting to construct the key name. Leave that mess to me :-)
Corollary, if you need more precomputed values in either yaml file, please let me know. I'll be happy to add them to the ECS generator :-)
from ecs-dotnet.
Related Issues (20)
- [Question/Feature] How to set Index Lifecycle Policy HOT 1
- [FEATURE] Pre-release nuget deploys when items get merged into main
- [FEATURE] Elastic.Serilog.Sinks - Allow specifying a formatter for the message string HOT 1
- [BUG] Using NLog.Web.AspNetCore for NLog json config in Worker Service (non AspNet core project) writes NLog internal error messages on every write to NLog loggers HOT 2
- [BUG] Cannot send logs to https://server/subpath
- [BUG] MaxRetries / MaximumRetries configurations are not working correctly in Elastic.Serilog.Sinks
- [Question] Default agent HOT 1
- [FEATURE] Allow writing BenchmarkDotNet results to a json file
- [BUG] Elastic.Serilog.Sinks/README.md is outdated
- [BUG] When using the default data stream name, the value of IlmPolicy is ignored HOT 5
- [BUG] Memory leak HOT 2
- [BUG] useSniffing parameter is actually dontUseSniffing
- IHttpContextAccessor not available in netstandard
- [FEATURE] Enable full configuration of `Elastic.Serilog.Sinks` through `appsettings.json` HOT 7
- [BUG] Elastic.CommonSchema.NLog : `trace.id` field contains extra `}` HOT 1
- [BUG] HttpContext.User is not used in Serilog EcsTextFormatter HOT 2
- [FEATURE] Support passing prepared EcsDocument object to the logging API
- [BUG] Logs not being parsed properly in Kibana APM app HOT 4
- [BUG] EcsTextFormatter doesn't use the IHostingEnvironment concept in dotnet core
- [BUG] The fields event.code and event.action specified by the ECS standard are not written correct in dotnet core HOT 4
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 ecs-dotnet.