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

Allow setting the Sampler via environment variables #2517

Merged
merged 39 commits into from Mar 21, 2022
Merged

Allow setting the Sampler via environment variables #2517

merged 39 commits into from Mar 21, 2022

Commits on Mar 20, 2022

  1. Copy the full SHA
    79367b4 View commit details
    Browse the repository at this point in the history
  2. Add changelog entry.

    vibhavp committed Mar 20, 2022
    Copy the full SHA
    18713e2 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    46717eb View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    9be40f9 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    e88a6b3 View commit details
    Browse the repository at this point in the history
  6. Refactor documentation.

    Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
    vibhavp and jmacd committed Mar 20, 2022
    Copy the full SHA
    3666485 View commit details
    Browse the repository at this point in the history
  7. emitBatchOverhead should only be used for splitting spans into batches (

    #2512)
    
    * emitBatchOverhead should only be used for splitting spans into batches (#2503)
    
    * limit max packet size parameter
    ken8203 authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    de64ab6 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    9baf34a View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    3e41f19 View commit details
    Browse the repository at this point in the history
  10. Fix typo in jaeger example (#2524)

    bvwells authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    9da3953 View commit details
    Browse the repository at this point in the history
  11. Fix some typos in docs for Go libraries (#2520)

    Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    e8e5636 View commit details
    Browse the repository at this point in the history
  12. Fix getting-started.md Run function (#2527)

    * Fix getting-started.md Run function, it assigns this new context to a variable shared between connections in to accept loop. Thus creating a growing chain of contexts. so every calculate fibonacci request, all spans in a trace.
    
    * add a comment explaining the reason for that new variable
    
    * update example fib
    thinkgos authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    1cc331d View commit details
    Browse the repository at this point in the history
  13. Bump github.com/google/go-cmp from 0.5.6 to 0.5.7 across the project (#…

    …2545)
    
    * update go-cmp to 0.5.7
    
    * fixes go.sums
    
    Co-authored-by: Aaron Clawson <MadVikingGod@users.noreply.github.com>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    6a17fd9 View commit details
    Browse the repository at this point in the history
  14. Un-escape url coding when parsing baggage. (#2529)

    * un-escape url coding when parsing baggage.
    
    * Added changelog
    
    Co-authored-by: Aaron Clawson <MadVikingGod@users.noreply.github.com>
    Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
    3 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    259bc50 View commit details
    Browse the repository at this point in the history
  15. Bump go.opentelemetry.io/proto/otlp from 0.11.0 to 0.12.0 (#2546)

    * Update go.opentelemetry.io/proto/otlp to v0.12.0
    
    * Changelog
    
    * Update CHANGELOG.md
    
    Fix's md linting
    
    Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
    
    Co-authored-by: Aaron Clawson <MadVikingGod@users.noreply.github.com>
    Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
    3 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    cfe16a2 View commit details
    Browse the repository at this point in the history
  16. Copy the full SHA
    f064335 View commit details
    Browse the repository at this point in the history
  17. Copy the full SHA
    1ea46ad View commit details
    Browse the repository at this point in the history
  18. Bump github.com/prometheus/client_golang from 1.11.0 to 1.12.0 in /ex…

    …porters/prometheus (#2541)
    
    * Bump github.com/prometheus/client_golang in /exporters/prometheus
    
    Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.11.0 to 1.12.0.
    - [Release notes](https://github.com/prometheus/client_golang/releases)
    - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
    - [Commits](prometheus/client_golang@v1.11.0...v1.12.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/prometheus/client_golang
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * go mod tidy
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Tyler Yahn <codingalias@gmail.com>
    Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
    3 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    9c3a231 View commit details
    Browse the repository at this point in the history
  19. Optimize evictedQueue implementation and use (#2556)

    * Optimize evictedQueue impl and use
    
    Avoid unnecessary allocations in the recordingSpan by using an
    evictedQueue type instead of a pointer to one.
    
    Lazy allocate the evictedQueue queue to prevent unnecessary operations
    for spans without any use of the queue.
    
    Document the evictedQueue
    
    * Fix grammar
    MrAlias authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    fe8af71 View commit details
    Browse the repository at this point in the history
  20. Add env support for batch span processor (#2515)

    * Add env support for batch span processor
    
    * Update changelog
    
    * lint
    sincejune authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    797d7df View commit details
    Browse the repository at this point in the history
  21. Bump golang.org/x/tools from 0.1.8 to 0.1.9 in /internal/tools (#2566)

    * Bump golang.org/x/tools from 0.1.8 to 0.1.9 in /internal/tools
    
    Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.8 to 0.1.9.
    - [Release notes](https://github.com/golang/tools/releases)
    - [Commits](golang/tools@v0.1.8...v0.1.9)
    
    ---
    updated-dependencies:
    - dependency-name: golang.org/x/tools
      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>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    8b41a05 View commit details
    Browse the repository at this point in the history
  22. Bump github.com/golangci/golangci-lint from 1.43.0 to 1.44.0 in /inte…

    …rnal/tools (#2567)
    
    * Bump github.com/golangci/golangci-lint in /internal/tools
    
    Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.43.0 to 1.44.0.
    - [Release notes](https://github.com/golangci/golangci-lint/releases)
    - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
    - [Commits](golangci/golangci-lint@v1.43.0...v1.44.0)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/golangci/golangci-lint
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    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>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    64a7b19 View commit details
    Browse the repository at this point in the history
  23. Bump github.com/prometheus/client_golang from 1.12.0 to 1.12.1 in /ex…

    …porters/prometheus (#2570)
    
    * Bump github.com/prometheus/client_golang in /exporters/prometheus
    
    Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.0 to 1.12.1.
    - [Release notes](https://github.com/prometheus/client_golang/releases)
    - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
    - [Commits](prometheus/client_golang@v1.12.0...v1.12.1)
    
    ---
    updated-dependencies:
    - dependency-name: github.com/prometheus/client_golang
      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>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    48e7ea8 View commit details
    Browse the repository at this point in the history
  24. Fix TestBackoffRetry in otlp/internal/retry package (#2562)

    * Fix TestBackoffRetry in otlp retry pkg
    
    The delay of the retry is within two times a randomization factor (the
    back-off time is delay * random number within [1 - factor, 1 + factor].
    This means the waitFunc in TestBackoffRetry needs to check the delay is
    within an appropriate delta, not equal to configure initial delay.
    
    * Fix delta value
    
    * Fix delta
    
    Co-authored-by: Aaron Clawson <Aaron.Clawson@gmail.com>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    a7e5d73 View commit details
    Browse the repository at this point in the history
  25. Bump google.golang.org/grpc from 1.43.0 to 1.44.0 in /exporters/otlp/…

    …otlptrace (#2568)
    
    * Bump google.golang.org/grpc in /exporters/otlp/otlptrace
    
    Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.43.0 to 1.44.0.
    - [Release notes](https://github.com/grpc/grpc-go/releases)
    - [Commits](grpc/grpc-go@v1.43.0...v1.44.0)
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/grpc
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    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>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    d5a0ed0 View commit details
    Browse the repository at this point in the history
  26. Bump google.golang.org/grpc from 1.43.0 to 1.44.0 in /example/otel-co…

    …llector (#2565)
    
    * Bump google.golang.org/grpc in /example/otel-collector
    
    Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.43.0 to 1.44.0.
    - [Release notes](https://github.com/grpc/grpc-go/releases)
    - [Commits](grpc/grpc-go@v1.43.0...v1.44.0)
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/grpc
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    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>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    45a1500 View commit details
    Browse the repository at this point in the history
  27. Bump google.golang.org/grpc from 1.43.0 to 1.44.0 in /exporters/otlp/…

    …otlpmetric (#2572)
    
    * Bump google.golang.org/grpc in /exporters/otlp/otlpmetric
    
    Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.43.0 to 1.44.0.
    - [Release notes](https://github.com/grpc/grpc-go/releases)
    - [Commits](grpc/grpc-go@v1.43.0...v1.44.0)
    
    ---
    updated-dependencies:
    - dependency-name: google.golang.org/grpc
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    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>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    8dc7c69 View commit details
    Browse the repository at this point in the history
  28. Change Options to accept type not pointer (#2558)

    * Change trace options to accept type not pointer
    
    Add benchmark to show allocation improvement.
    
    * Update CONTRIBUTING.md guidelines
    
    * Update all Option iface
    
    * Fix grammar in CONTRIBUTING
    MrAlias authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    3fe7c09 View commit details
    Browse the repository at this point in the history
  29. Do not store TracerProvider or Tracer fields in SDK recordingSpan (#2575

    )
    
    * Do not store TracerProvider fields in span
    
    Instead of keeping a reference to the span's Tracer, and therefore also
    it's TracerProvider, and the associated resource and spanLimits just
    keep the reference to the Tracer. Refer to the TracerProvider fields
    when needed instead.
    
    * Make span refer to the inst lib via the Tracer
    
    Instead of holding a field in the span, refer to the field in the parent
    Tracer.
    MrAlias authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    409cd54 View commit details
    Browse the repository at this point in the history
  30. Copy the full SHA
    f31ea0a View commit details
    Browse the repository at this point in the history
  31. Validate members once, in NewMember (#2522)

    * use NewMember, or specify if the member is not validated when creating new ones
    
    * expect members to already be validated when creating a new package
    
    * add changelog entry
    
    * add an isEmpty field to member and property for quick validation
    
    * rename isEmpty to hasData
    
    So by default, an empty struct really is marked as having no data
    
    * Update baggage/baggage_test.go
    
    Co-authored-by: Aaron Clawson <Aaron.Clawson@gmail.com>
    
    * don't validate the member in parseMember, we alredy ran that validation
    
    We also don't want to use NewMember, as that runs the property
    validation again, making the benchmark quite slower
    
    * move changelog entry to the fixed section
    
    * provide the member/property data when returning an invalid error
    
    Co-authored-by: Aaron Clawson <Aaron.Clawson@gmail.com>
    2 people authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    0be1658 View commit details
    Browse the repository at this point in the history
  32. Fix link to Zipkin exporter (#2581)

    Currently it is linked to the old package that was moved.
    MrAlias authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    0354823 View commit details
    Browse the repository at this point in the history
  33. Unexport EnvBatchSpanProcessor* constants (#2583)

    * Move BSP env support to internal
    
    * Use pkg name
    
    * Update env test
    
    * Use internal/env in sdk/trace
    MrAlias authored and vibhavp committed Mar 20, 2022
    Copy the full SHA
    edc91fd View commit details
    Browse the repository at this point in the history
  34. Copy the full SHA
    d3a3e0c View commit details
    Browse the repository at this point in the history
  35. Copy the full SHA
    e512343 View commit details
    Browse the repository at this point in the history
  36. Copy the full SHA
    3af1c81 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2022

  1. Copy the full SHA
    10fafb8 View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.md

    MrAlias committed Mar 21, 2022
    Copy the full SHA
    3400b5a View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    7c25f9f View commit details
    Browse the repository at this point in the history