question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] ECS Generator - Ability to Selectively Extend Reusable Mappings

See original GitHub issue

Summary

I would like to be able to have a way with the ECS generator.py to be able to “selectively” extend reusable mappings.

Motivation:

I recently encountered an issue where I add my own schema, and have it be reusable for user:

  reusable:
    order: 1
    top_level: true
    expected:
      - user

While I intend for these mappings to be added to the user field under the generated schemas client, destination, server, source, and user. They also get added to process and this is where the issue arises and where my enhancement comes in. The process schema reuses user 33 times, most of these don’t have any need for my additional mappings that I’m adding, and I’d like to exclude my mappings from the process generation, as the additional mappings put the generated process over 1000 fields.

I looked through the docs and wasn’t able to find a way to do this today, so opening this enhancement request.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
BenB196commented, Jun 13, 2022

Thanks, will open a new enhancement request for it, as I think component templates are hard capped at 1000 fields, and I think it would be useful to catch issue at the generation side, not the ES upload side.

1reaction
kgellercommented, Jun 13, 2022

is there a way to force the generator to fail if it generates a component template over 1000 fields (or just X number of fields)?

I don’t think we currently have any functionality to force a failure like that.

I’d assume that something like the --strict arg would do this, but that doesn’t seem to be the case.

Correct, strict is defined here, and the number of fields isn’t something it looks at today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

datadog-agent/CHANGELOG.rst at main - GitHub
Enhanced the coverage of pause-containers filtering on Containerd. APM: Fix the loss of trace metric container information when large payloads need to be...
Read more >
Unreal Engine 5.1 Release Notes
Here is a short guide to help: Create a C# project in the same directory tree as the plugin with the existing C++...
Read more >
Department of Homeland Security
S&T's budget supports Component capability gap requirements and aligns with Administration and DHS priorities.
Read more >
The Caenorhabditis elegans Transgenic Toolbox - PMC - NCBI
It is central to the design process that transgenes should incorporate an understanding of how transcription and translation of endogenous genes are regulated....
Read more >
Microfluidic Paper-Based Analytical Devices: From Design to ...
Electrochemical paper-based analytical devices (ePADs) offer a selective and sensitive platform for quantitative analysis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found