Giter Site home page Giter Site logo

Comments (8)

kirankumarkolli avatar kirankumarkolli commented on July 17, 2024

EnableScriptLogging gets logs in a header named 'x-ms-documentdb-script-log-results', which can be access through CosmosItemResponse.Headers.

@kentcb are you not seeing 'x-ms-documentdb-script-log-results' header in the response?

from azure-cosmos-dotnet-v3.

kentcb avatar kentcb commented on July 17, 2024

Ah, yes I do. Sorry, I missed that somehow. That said, it comes through as encoded (e.g. a space comes through as %20) which is probably fine and expected given that it's a header. However, being in a header also means that it comes through as lower case, which means that important information may be lost (e.g. generated IDs will lose casing).

from azure-cosmos-dotnet-v3.

kentcb avatar kentcb commented on July 17, 2024

It also loses line breaks between distinct console.log calls, which is a bit annoying.

from azure-cosmos-dotnet-v3.

kirankumarkolli avatar kirankumarkolli commented on July 17, 2024

@kentcb thanks for the feedback.

Some parts of the feedback (encoding etc..) can be handled by client abstraction but it doesn't cover the lower-casing part, this needs to be addressed by service.

@kentcb can you please share this feedback over askcosmosdb[AtT]microsoft.com?

from azure-cosmos-dotnet-v3.

kirankumarkolli avatar kirankumarkolli commented on July 17, 2024

@mkolt thoughts on lower case issues in script logs?

from azure-cosmos-dotnet-v3.

mkolt avatar mkolt commented on July 17, 2024

+@balaperu

from azure-cosmos-dotnet-v3.

christopheranderson avatar christopheranderson commented on July 17, 2024

@mkolt - we need to triage this still. Since this is a backend limitation, my thought is that we should move this off the SDK repo. Did you make any progress on this?

from azure-cosmos-dotnet-v3.

mkolt avatar mkolt commented on July 17, 2024

The line breaks etc should be fixed a while ago. We URL-encode the value.

from azure-cosmos-dotnet-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.