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

[v2] update endpoints to separate intake from assets #1360

Merged
merged 4 commits into from
Sep 12, 2018

Conversation

roncohen
Copy link
Contributor

@roncohen roncohen commented Sep 6, 2018

Closes #1336.

@roncohen roncohen changed the title update endpoints to separate intake from assets [v2] update endpoints to separate intake from assets Sep 6, 2018
rootURL = "/"
HealthCheckURL = "/healthcheck"

// intake v1
Copy link
Contributor

Choose a reason for hiding this comment

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

Those URLs are also deprecated.

@@ -36,20 +36,28 @@ import (
)

var (
rootURL = "/"
rootURL = "/"
HealthCheckURL = "/healthcheck"
Copy link
Contributor

Choose a reason for hiding this comment

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

will also be deprecated, as rootUrl is the new healthcheck URL.

@watson
Copy link
Contributor

watson commented Sep 7, 2018

Consider adding deprecation warnings already now for the old sourcemap urls that will be removed in v7

Edit: Maybe it doesn't make sense... anyways, just wanted to mention it

@watson
Copy link
Contributor

watson commented Sep 7, 2018

Wasn't the sourcemap URL supposed to be /assets/v1/sourcemaps?

@roncohen
Copy link
Contributor Author

set sourcemap url to /assets/v1/sourcemaps and updated comments to reflect that all intake v1 urls are deprecated.

@roncohen
Copy link
Contributor Author

@watson @simitt 👍 ?

Copy link
Contributor

@simitt simitt left a comment

Choose a reason for hiding this comment

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

Didn't you have a deprecation warning somewhere in the old commits? Why did you remove that?

@@ -35,7 +35,7 @@ Example source map request

["source","sh",subs="attributes"]
---------------------------------------------------------------------------
curl -X POST http://127.0.0.1:8200/v1/rum/sourcemaps \
curl -X POST http://127.0.0.1:8200/assets/v1/sourcemaps \
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd expect to have a note about the deprecated URL somewhere in the docs. It is going to be part of a minor release, we should avoid simply removing deprecated but supported URLS.

@roncohen
Copy link
Contributor Author

Didn't you have a deprecation warning somewhere in the old commits? Why did you remove that?

I don't think there was a deprecation warning, but I'm happy to add one.

Copy link
Contributor

@watson watson left a comment

Choose a reason for hiding this comment

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

I think a deprecation notice in the docs would be nice as well. Besides that I'm 👍

@roncohen
Copy link
Contributor Author

screen shot 2018-09-12 at 3 30 43 pm

@watson
Copy link
Contributor

watson commented Sep 12, 2018

FYI, there's a custom keyword you can use in asciidoc to show deprecation notices:

deprecated[6.5.0,The URL for uploading sourcemaps was previously `/v1/sourcemaps`. It still works, but is being deprecated in favor of `/assets/v1/sourcemaps`.]

I use it in the Node.js docs here: https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-build-span

@watson
Copy link
Contributor

watson commented Sep 12, 2018

But come to think of it, that might look weird in this case. I'm also fine with how it looks now :)

@roncohen roncohen merged commit 5264589 into elastic:v2 Sep 12, 2018
@roncohen
Copy link
Contributor Author

@elastic/apm-agent-devs heads up: this changes the intake v2 urls

@roncohen roncohen deleted the v2-endpoints branch September 12, 2018 15:31
@roncohen
Copy link
Contributor Author

thanks @watson @simitt !

@mikker
Copy link

mikker commented Sep 12, 2018

New one is "/intake/v2/events"?

@simitt
Copy link
Contributor

simitt commented Sep 13, 2018

yes @mikker

felixbarny added a commit to felixbarny/apm-agent-java that referenced this pull request Sep 13, 2018
felixbarny added a commit to elastic/apm-agent-java that referenced this pull request Sep 17, 2018
roncohen added a commit to roncohen/apm-server that referenced this pull request Oct 7, 2018
roncohen added a commit to roncohen/apm-server that referenced this pull request Oct 15, 2018
roncohen added a commit to roncohen/apm-server that referenced this pull request Oct 15, 2018
roncohen added a commit to roncohen/apm-server that referenced this pull request Oct 15, 2018
roncohen added a commit to roncohen/apm-server that referenced this pull request Oct 15, 2018
roncohen added a commit to roncohen/apm-server that referenced this pull request Oct 15, 2018
roncohen added a commit to roncohen/apm-server that referenced this pull request Oct 16, 2018
roncohen added a commit that referenced this pull request Oct 16, 2018
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.

4 participants