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

Add MaxLogsPerSpan option #47

Merged
merged 1 commit into from
Oct 1, 2016
Merged

Conversation

RaduBerinde
Copy link
Contributor

@RaduBerinde RaduBerinde commented Sep 29, 2016

Basictracer now supports a MaxLogPerSpan options; plumbing this option in
Lightstep as well.

Fixes #46.

@@ -117,6 +118,9 @@ type Options struct {
// variable-length value types (strings, interface{}, etc).
MaxLogValueLen int `yaml:"max_log_value_len"`

// MaxLogsPerSpan limits the number of logs in a single span.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remind me -- if someone sets this to 0, it would actually inherit the basictracer default, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we are setting options.MaxLogsPerSpan unconditionally after getting the DefaultOptions(). If we want that we can enclsoe that in a if MaxLogsPerSpan != 0

@RaduBerinde
Copy link
Contributor Author

It looks like the CI build is using an old basictracer-go (which doesn't build with the latest opentracing-go).

Basictracer now supports a `MaxLogPerSpan` option; plumbing this option in
Lightstep as well.

Fixes lightstep#46.
@resospoons
Copy link
Contributor

Yes, that happened with the previous build as well. I'll take a look.

On Fri, Sep 30, 2016 at 8:38 AM RaduBerinde notifications@github.com
wrote:

It looks like the CI build is using an old basictracer-go (which doesn't
build with the latest opentracing-go).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#47 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKeRmktMOTD1qWnXldNLwRh8dvmzEeMgks5qvSycgaJpZM4KJ5nj
.

@resospoons
Copy link
Contributor

The CircleCI cache needed to be flushed. Fixed!

On Fri, Sep 30, 2016 at 8:40 AM spoons spoons@lightstep.com wrote:

Yes, that happened with the previous build as well. I'll take a look.

On Fri, Sep 30, 2016 at 8:38 AM RaduBerinde notifications@github.com
wrote:

It looks like the CI build is using an old basictracer-go (which doesn't
build with the latest opentracing-go).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#47 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKeRmktMOTD1qWnXldNLwRh8dvmzEeMgks5qvSycgaJpZM4KJ5nj
.

@bhs
Copy link
Contributor

bhs commented Oct 1, 2016

Sorry I forgot about this...

On one hand, I'm not crazy about the way the second set of defaults is expressed here. On the other hand, I don't want to make you change that since it would affect BasicTracer as well. So we can merge this and potentially clean up the options stuff separately.

@bhs bhs merged commit 7ec5005 into lightstep:master Oct 1, 2016
@RaduBerinde
Copy link
Contributor Author

Thanks @bensigelman

I can do some cleanup, what do you have in mind? Exporting the default value from basictracer as a constant that we use here as well?

@bhs
Copy link
Contributor

bhs commented Oct 2, 2016

@RaduBerinde there's a lightstep-internal effort to canonicalize the semantics of tracer tuning options across platforms... until that's settled down, it's probably not worth the churn. (Aside from anything else, I'd rather do a "functional options" idiom for the initialization)

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