Comments (6)
Also, we need to contextualise the schema validation warnings:
# Learn more about the OpenTelemetry Collector via
# https://opentelemetry.io/docs/collector/
receivers:
otlp:
protocols:
grpc:
http:
processors:
batch:
ciao: # This should read "The configuration property 'ciao' is not allowed for the 'batch' processor"
ciao: # This should read "The processor type 'ciao' is unknown"
ciao: # This should read "The 'ciao' top-element configuration is invalid"
exporters:
otlp:
endpoint: otelcol:4317
extensions:
health_check:
pprof:
zpages:
service:
extensions: [health_check, pprof, zpages]
ciao:
pipelines:
ciao: # This should read "The type 'ciao' is not a known type of pipeline"
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlp]
from otelbin.
@mmanciop @bripkens As I communicated with monaco-yaml dev about contextualize the schema validation warnings, for now it's impossible to change the warnings, they are only can accessible as read-only data.
The data is generating from vscode-json-languageservice / yaml-language-server. (just as example: https://github.com/microsoft/vscode-json-languageservice/blob/main/src/services/jsonValidation.ts#L101))
In addition, yaml-language-server still uses vscode-nls, but vscode-json-languageservice has moved on to the new @ vscode/l10n. Updates in yaml-language-server may be needed.
Finally, I assume we can only improve the parts like @bripkens mentioned in the description of the issue
from otelbin.
@roshan-gh, are you saying that we cannot modify validation errors before they get to the editor?
from otelbin.
@mmanciop yes exactly
from otelbin.
Would it be possible to wrap the worker in some custom code and in there to update the texts @roshan-gh?
otelbin/src/contexts/EditorContext.tsx
Lines 97 to 100 in 1d013b8
from otelbin.
I will look into it and check it @bripkens
from otelbin.
Related Issues (20)
- False positive for config validation HOT 2
- Monaco not loading with Pi-Hole Common Setup HOT 2
- Detect cycles in connectors when using browser-only validation
- Improve error reporting for distro validation HOT 1
- Support better configuration encoding strategies for the URL HOT 1
- OTelBin crashes when the name of a pipeline component is a number
- Mobile Support
- Pasting content in the editor moves the cursor
- Run time errors when editing the YAML config
- Splunk OTel Distribution HOT 1
- www.otelbin.io Editor does not work HOT 3
- Any way to display in "light mode" HOT 2
- Collector Version Selection Dropdown cut off at top
- Connector visualization issue HOT 1
- Missing icons in some processors HOT 1
- How to try adding a new distribution without the AWS dependency? HOT 2
- Support pasting of structured configuration of the OTel collector CRD
- Bug: endpoint: 0.0.0.0 causes app error HOT 2
- Remove validation false positive for debug exporter
- Backend validation fails with semantic branch names
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 otelbin.