Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: add support for additional properties in resource #4832

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Jan 19, 2024

This allows the configuration of other attributes than service.name. I'm using a personal fork of go-jsonschema to test out that the implementation would work for otel-config's use-case

Support for additional properties is now available in the go-jsonschema library, updated the PR accordingly

Fixes #4828

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: Patch coverage is 21.46893% with 139 lines in your changes are missing coverage. Please review.

Project coverage is 62.5%. Comparing base (985666e) to head (cd37c80).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #4832     +/-   ##
=======================================
+ Coverage   62.4%   62.5%   +0.1%     
=======================================
  Files        191     191             
  Lines      11690   11727     +37     
=======================================
+ Hits        7303    7340     +37     
  Misses      4170    4170             
  Partials     217     217             
Files Coverage Δ
config/resource.go 100.0% <100.0%> (ø)
config/generated_config.go 0.0% <0.0%> (ø)

@MadVikingGod MadVikingGod added the area: config Related to config functionality label Feb 1, 2024
@codeboten codeboten force-pushed the codeboten/resource-additional-attributes branch from 90cead7 to f37afc0 Compare April 23, 2024 21:29
Copy link

linux-foundation-easycla bot commented Apr 23, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

This allows the configuration of other attributes than service.name.

Signed-off-by: Alex Boten <aboten@lightstep.com>
@codeboten codeboten force-pushed the codeboten/resource-additional-attributes branch from f37afc0 to af7a01a Compare April 23, 2024 21:30
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
@codeboten codeboten marked this pull request as ready for review April 23, 2024 21:50
config/resource.go Show resolved Hide resolved
@themarcelor
Copy link

This would be a pretty cool change 👍🏼

@MrAlias MrAlias merged commit b261c6e into open-telemetry:main May 8, 2024
22 of 23 checks passed
@codeboten codeboten deleted the codeboten/resource-additional-attributes branch May 8, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: config Related to config functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

config: add support for additional attributes
4 participants