Skip to content

Requests made datastore v0.1.1 are shown as v1beta2 requests in API usage graph #1532

Description

@richardkazuomiller

I looked at my API usage in my GCP project and the graph showed that all of my requests to Datastore are made with the v1beta2 API, even though I've migrated some of my servers to v1beta3. Is this a problem with @google-cloud/datastore, a backend issue, or something I'm doing wrong?

Activity

  1. richardkazuomiller commented on Aug 26, 2016

    @richardkazuomiller
    Author

    Sorry, accidentally submitted before actually writing anything. Must have accidentally hit some secret keyboard shortcut.

  2. changed the title [-]Requests made datastore v0.1.1[/-] [+]Requests made datastore v0.1.1 are shown as v1beta2 requests in API usage graph[/+] on Aug 26, 2016
  3. richardkazuomiller commented on Aug 26, 2016

    @richardkazuomiller
    Author

    These are my usage graphs:

    screen shot 2016-08-26 at 3 49 40 pm


    screen shot 2016-08-26 at 3 50 06 pm


    I think I'm using the new package right, but is there anything I need to do to make requests go to v1beta3 or v1? I need to do this before the old API is turned down

    var gcloudDatastore = require('@google-cloud/datastore');
    
    const datastore = gcloudDatastore({
      projectId: MY_PROJECT_ID,
      keyFilename: MY_KEY_FILE
    });
    
  4. stephenplusplus commented on Aug 26, 2016

    @stephenplusplus
    Contributor

    Any usage of gcloud since 0.30.0, released 4/4/16 and any version of @google-cloud or @google-cloud/datastore have been using v1beta3.

    We will have a release soon for v1. The only thing you'll need to do is upgrade @google-cloud/datastore.

    As for the usage graphs, I have to assume it's coming from some other Datastore usage, as long as you've been using the versions of our library stated above. If that doesn't explain it, we can ask @pcostell if he has any ideas.

  5. richardkazuomiller commented on Aug 26, 2016

    @richardkazuomiller
    Author

    You're right – I have a service running on one server in my project that still uses the v1beta2 API, and it looks like all the v1beta2 logs are from that one server's IP.

    I thought that v1beta3 traffic was being counted as v1beta2 traffic because I assumed that there would be some kind of log of API usage for every version. However, there are no logs or data on the usage graph for the other servers making requests to the v1beta3 API. I've entirely removed gcloud from most of my servers, so I am positive there is some v1beta3 usage. Do you know of any reason why this would happen?

  6. stephenplusplus commented on Aug 26, 2016

    @stephenplusplus
    Contributor

    I'm not sure, but @pcostell might have insight into that.

    Going to close the issue since we're not talking about a bug in our library. Feel free to keep discussing.

  7. pcostell commented on Aug 26, 2016

    @pcostell
    Contributor

    v1beta3 and v1 traffic unfortunately do not appear in the API console usage tracker: googleapis/google-cloud-datastore#133

  8. richardkazuomiller commented on Aug 26, 2016

    @richardkazuomiller
    Author

    @pcostell Thank you. I'll subscribe to that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions