Git Product home page Git Product logo

Comments (6)

jamesbornholt avatar jamesbornholt commented on May 28, 2024 2

Agreed! In particular, what we should be looking for here is for the s3_client crate to set a default user-agent for all its requests, and also allow the constructor of an S3Client to prepend whatever they want. Then the file connector can just set that config.

from mountpoint-s3.

jamesbornholt avatar jamesbornholt commented on May 28, 2024 1

We should also add versioning to that header.

from mountpoint-s3.

dannycjones avatar dannycjones commented on May 28, 2024 1

I think we should explicitly call this out as "S3 File Connector" (or whichever name we come up with). Of course, we can allow it to be prefixed too - but let's keep the name of the connector in there by default.

So default:

S3FileConnector/1.0 aws-s3-crt-rust/2.0 Linux/5.x

And with configurable prefix:

whateveriwant S3FileConnector/1.0 aws-s3-crt-rust/2.0 Linux/5.x

from mountpoint-s3.

dannycjones avatar dannycjones commented on May 28, 2024 1

Agreed! In particular, what we should be looking for here is for the s3_client crate to set a default user-agent for all its requests, and also allow the constructor of an S3Client to prepend whatever they want. Then the file connector can just set that config.

Re-reading this, this sounds exactly right.

Wasn't clicking the first time I read this thread when I responded earlier.
We don't need to provide a configurable user agent prefix for the file connector at this time - only in the S3 Client crate which we will use within the connector.

from mountpoint-s3.

jamesbornholt avatar jamesbornholt commented on May 28, 2024

We already do this: https://github.com/awslabs/s3-file-connector/blob/b671df4a0d8552804b45aca1af37eda7df44e024/s3-client/src/s3_client.rs#L137

But we should make it extensible so we can distinguish the connector from anyone else who ends up using this Rust S3 client.

from mountpoint-s3.

dannycjones avatar dannycjones commented on May 28, 2024

I think this would be a good first issue for @sauraank or myself to pickup.

from mountpoint-s3.

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.