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

lokiexporter: Remove dependency on https://github.com/grafana/loki, due to incompatible dep issues #2385

Merged
merged 4 commits into from
Feb 20, 2021

Conversation

gramidt
Copy link
Member

@gramidt gramidt commented Feb 20, 2021

Description:
Removed dependency on https://github.com/grafana/loki due to incompatible dependency issues. The Grafana/loki project has many dependencies that are not needed by this exporter, and a few of those dependencies have additional dependencies that are incompatible with other components within this project. Given that the "replace" directive is only honored within the root go.mod, these sub-dependencies break other components and prevent this exporter from successfully being added to the binary.

The loki-client-go project was recently started to help address the dependency requirements and make Loki clients easier to implement, but is marked experimental and has not released a version yet. Once this project has released a supported version, we will evaluate switching to it (#2386).

To help progress and overcome these issues immediately, this PR has copied the Loki log protos from ( https://github.com/grafana/loki/tree/v2.1.0/pkg/logproto ), with this decision being documented within the committed exporter/lokiexporter/logproto/README.md.

Link to tracking Issue:
#1894

Testing:
Unit Tests

Documentation:
READMEs

…r/pkg/logproto

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
@gramidt gramidt marked this pull request as ready for review February 20, 2021 19:41
@gramidt gramidt requested a review from a team February 20, 2021 19:41
@gramidt gramidt mentioned this pull request Feb 20, 2021
@bogdandrutu bogdandrutu merged commit e43c235 into open-telemetry:main Feb 20, 2021
@gramidt gramidt deleted the rm-loki-direct-dep branch February 20, 2021 23:29
bogdandrutu pushed a commit that referenced this pull request Feb 22, 2021
…s for third-party code (#2389)

* moved 'logprotos' to 'third_party' directory to follow current project conventions

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>

* moved Loki Apache 2.0 license out to LICENSE file to follow third_party project conventions

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>

* removed otel license header to follow 'third_party' project conventions

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
kisieland referenced this pull request in kisieland/opentelemetry-collector-contrib Mar 16, 2021
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
pmatyjasek-sumo referenced this pull request in pmatyjasek-sumo/opentelemetry-collector-contrib Apr 28, 2021
…ue to incompatible dep issues (#2385)

* copied logproto files from https://github.com/grafana/loki/blob/master/pkg/logproto

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>

* updated imports to use local copy of logproto

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>

* fixed import formatting

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>

* added otel copyright to logproto files due to licensecheck

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
pmatyjasek-sumo referenced this pull request in pmatyjasek-sumo/opentelemetry-collector-contrib Apr 28, 2021
…s for third-party code (#2389)

* moved 'logprotos' to 'third_party' directory to follow current project conventions

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>

* moved Loki Apache 2.0 license out to LICENSE file to follow third_party project conventions

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>

* removed otel license header to follow 'third_party' project conventions

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
…/otlp/otlptrace (#2385)

* Bump github.com/cenkalti/backoff/v4 in /exporters/otlp/otlptrace

Bumps [github.com/cenkalti/backoff/v4](https://github.com/cenkalti/backoff) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/cenkalti/backoff/releases)
- [Commits](cenkalti/backoff@v4.1.1...v4.1.2)

---
updated-dependencies:
- dependency-name: github.com/cenkalti/backoff/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Auto-fix go.sum changes in dependent modules

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: MrAlias <MrAlias@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants