Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 2.48 KB

CONTRIBUTING.md

File metadata and controls

48 lines (30 loc) · 2.48 KB

Contributing

Local Development

To develop OTelBin locally, you will need to clone this repository and set up all the env vars outlined in the .env.example file.

Once that's done, you can use the following commands to run the app locally:

cd packages/otelbin
npm i
npm run dev

Using the JSON Schema

This repository uses a JSON schema from the VS Code's extension OTEL Validator in order to provide validation for the collector configuration file.

To get the latest schema version, either clone the repository and copy the schema from assets/schema.json or directly download the file from the nimbushq/otel-validator repository.

Updated Schema

To update the JSON schema for this project, follow these steps:

  1. Familiarize Yourself with JSON Schema:
  1. Review the Upstream Repository:
  1. Identify Missing Properties:
  • Examine the Go files, READMEs, or other relevant sources in the mentioned sources to identify properties and configurations that are not yet included in the JSON schema.
  1. Update the Schema:
  • Make changes to the JSON schema file in your forked repository based on the properties and configurations you've identified. You can use a JSON schema editor or a text editor to make these updates.
  1. Test Your Changes:
  • Ensure that your updated JSON schema is valid by using JSON schema validation tools. This will help catch any syntax or structural issues in your schema.
  1. Commit and Push:
  • Commit your changes to the JSON schema file in your forked repository.
  1. Create a Pull Request:
  • Visit your forked repository on GitHub and create a pull request (PR) to merge your changes into the main repository's JSON schema.

Adding support for a new distribution

See the dedicated documentation.